Last active
June 7, 2016 13:54
-
-
Save NataliaAvila/dcac5787ff6af667ba83 to your computer and use it in GitHub Desktop.
Resolvendo o erro de leitura da propriedade "msie" que ocorre no plugin Jquery Tablesorter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Resolvendo o erro de leitura da propriedade "msie" que ocorre no plugin Jquery Tablesorter | |
Esse erro ocorre quando usa-se jQuery 1.9+, para resolver basta localizar a seguinte função abaixo | |
this.clearTableBody = function (table) { | |
if ($.browser.msie) { | |
function empty() { | |
while (this.firstChild) | |
this.removeChild(this.firstChild); | |
} | |
empty.apply(table.tBodies[0]); | |
} else { | |
table.tBodies[0].innerHTML = ""; | |
} | |
}; | |
e substituir por essa: | |
this.clearTableBody = function (table) { | |
$('tbody', table).empty(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment