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