Skip to content

Commit

Permalink
Fixes issue where if context is removed visibilty observers will not …
Browse files Browse the repository at this point in the history
…properly remove events
  • Loading branch information
jlukic committed Jun 2, 2016
1 parent 29b30ae commit a6238f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions/behaviors/visibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down

0 comments on commit a6238f0

Please sign in to comment.