|
|
@ -180,11 +180,11 @@ $.fn.visibility = function(parameters) { |
|
|
|
|
|
|
|
event: { |
|
|
|
resize: function() { |
|
|
|
module.verbose('Window resized'); |
|
|
|
module.debug('Window resized'); |
|
|
|
requestAnimationFrame(module.refresh); |
|
|
|
}, |
|
|
|
load: function() { |
|
|
|
module.verbose('Page finished loading'); |
|
|
|
module.debug('Page finished loading'); |
|
|
|
requestAnimationFrame(module.refresh); |
|
|
|
}, |
|
|
|
// publishes scrollchange event on one scroll
|
|
|
@ -336,7 +336,7 @@ $.fn.visibility = function(parameters) { |
|
|
|
}, |
|
|
|
|
|
|
|
refresh: function() { |
|
|
|
module.debug('Refreshing constants (element width/height)'); |
|
|
|
module.debug('Refreshing constants (width/height)'); |
|
|
|
module.reset(); |
|
|
|
module.save.position(); |
|
|
|
module.checkVisibility(); |
|
|
|