diff --git a/src/definitions/behaviors/visibility.js b/src/definitions/behaviors/visibility.js index e989310e3..9d14bb2e2 100644 --- a/src/definitions/behaviors/visibility.js +++ b/src/definitions/behaviors/visibility.js @@ -59,6 +59,7 @@ $.fn.visibility = function(parameters) { || function(callback) { setTimeout(callback, 0); }, element = this, + observer, module ; @@ -123,9 +124,6 @@ $.fn.visibility = function(parameters) { }, observeChanges: function() { - var - context = $context[0] - ; if('MutationObserver' in window) { observer = new MutationObserver(function(mutations) { module.verbose('DOM tree modified, updating visibility calculations');