fix silly regression regarding the DOM surveyor

This commit is contained in:
gorhill 2017-10-24 07:55:35 -04:00
parent 938d5b83f6
commit 2bea51cc63
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -1155,14 +1155,12 @@ vAPI.domSurveyor = (function() {
onDOMCreated: function() {
if (
vAPI instanceof Object === false ||
vAPI.domSurveyor instanceof Object === false ||
vAPI.domFilterer instanceof Object === false
) {
if ( vAPI instanceof Object ) {
if ( vAPI.domWatcher instanceof Object ) {
vAPI.domWatcher.removeListener(domWatcherInterface);
}
vAPI.domSurveyor = null;
}
return;
}