minor code review

This commit is contained in:
gorhill 2016-08-12 11:31:13 -04:00
parent 315dadb466
commit 839fed43ae
1 changed files with 1 additions and 1 deletions

View File

@ -1502,7 +1502,7 @@ vAPI.domSurveyor = (function() {
/******************************************************************************/
vAPI.domIsLoaded = function(ev) {
if ( ev ) {
if ( ev instanceof Event ) {
document.removeEventListener('DOMContentLoaded', vAPI.domIsLoaded);
}
vAPI.domIsLoaded = null;