|
@ -125,6 +125,10 @@ $.fn.visibility = function(parameters) { |
|
|
$context |
|
|
$context |
|
|
.off('scrollchange' + eventNamespace, module.event.scrollchange) |
|
|
.off('scrollchange' + eventNamespace, module.event.scrollchange) |
|
|
; |
|
|
; |
|
|
|
|
|
if(settings.type == 'fixed') { |
|
|
|
|
|
module.resetFixed(); |
|
|
|
|
|
module.remove.placeholder(); |
|
|
|
|
|
} |
|
|
$module |
|
|
$module |
|
|
.off(eventNamespace) |
|
|
.off(eventNamespace) |
|
|
.removeData(moduleNamespace) |
|
|
.removeData(moduleNamespace) |
|
@ -389,8 +393,7 @@ $.fn.visibility = function(parameters) { |
|
|
refresh: function() { |
|
|
refresh: function() { |
|
|
module.debug('Refreshing constants (width/height)'); |
|
|
module.debug('Refreshing constants (width/height)'); |
|
|
if(settings.type == 'fixed') { |
|
|
if(settings.type == 'fixed') { |
|
|
module.remove.fixed(); |
|
|
|
|
|
module.remove.occurred(); |
|
|
|
|
|
|
|
|
module.resetFixed(); |
|
|
} |
|
|
} |
|
|
module.reset(); |
|
|
module.reset(); |
|
|
module.save.position(); |
|
|
module.save.position(); |
|
@ -400,6 +403,11 @@ $.fn.visibility = function(parameters) { |
|
|
settings.onRefresh.call(element); |
|
|
settings.onRefresh.call(element); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
resetFixed: function () { |
|
|
|
|
|
module.remove.fixed(); |
|
|
|
|
|
module.remove.occurred(); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
reset: function() { |
|
|
reset: function() { |
|
|
module.verbose('Reseting all cached values'); |
|
|
module.verbose('Reseting all cached values'); |
|
|
if( $.isPlainObject(module.cache) ) { |
|
|
if( $.isPlainObject(module.cache) ) { |
|
@ -766,6 +774,12 @@ $.fn.visibility = function(parameters) { |
|
|
; |
|
|
; |
|
|
settings.onUnfixed.call(element); |
|
|
settings.onUnfixed.call(element); |
|
|
}, |
|
|
}, |
|
|
|
|
|
placeholder: function() { |
|
|
|
|
|
module.debug('Removing placeholder content'); |
|
|
|
|
|
if($placeholder) { |
|
|
|
|
|
$placeholder.remove(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
occurred: function(callback) { |
|
|
occurred: function(callback) { |
|
|
if(callback) { |
|
|
if(callback) { |
|
|
var |
|
|
var |
|
|