Merge pull request #70 from jeffreyguo/pulls/jserror

wait for DOM to remove attribute
This commit is contained in:
Ingo Schommer 2014-09-05 09:46:24 +12:00
commit 6e13a68762

View File

@ -114,10 +114,11 @@ JS;
}
$javascript = <<<JS
(function() {
var body = document.getElementsByTagName('body')[0];
body.removeAttribute('data-jserrors');
})();
if ('undefined' !== typeof window.jQuery) {
$(document).ready(function() {
window.jQuery('body').removeAttribute('data-jserrors');
});
}
JS;
$this->getSession()->executeScript($javascript);