diff --git a/src/definitions/behaviors/visibility.js b/src/definitions/behaviors/visibility.js index e44b2a5d9..4bdf64bc9 100644 --- a/src/definitions/behaviors/visibility.js +++ b/src/definitions/behaviors/visibility.js @@ -144,7 +144,7 @@ $.fn.visibility = function(parameters) { if('MutationObserver' in window) { contextObserver = new MutationObserver(module.event.contextChanged); observer = new MutationObserver(module.event.changed); - contextObserver.observe($context[0], { + contextObserver.observe(document, { childList : true, subtree : true });