wait for DOM to remove attribute

use window.jQuery instead of $
updated to removeAttr method
This commit is contained in:
Jeffrey Guo 2014-09-04 13:01:39 +12:00
parent 6e13a68762
commit cfbf61f60c

View File

@ -115,8 +115,8 @@ JS;
$javascript = <<<JS $javascript = <<<JS
if ('undefined' !== typeof window.jQuery) { if ('undefined' !== typeof window.jQuery) {
$(document).ready(function() { window.jQuery(document).ready(function() {
window.jQuery('body').removeAttribute('data-jserrors'); window.jQuery('body').removeAttr('data-jserrors');
}); });
} }
JS; JS;