Browse Source

#1724, make sure any method invocation forces position recalculation in visibility api

pull/2300/head
jlukic 9 years ago
parent
commit
159ccfc879
1 changed files with 3 additions and 1 deletions
  1. 4
      src/definitions/behaviors/visibility.js

4
src/definitions/behaviors/visibility.js

@ -409,7 +409,7 @@ $.fn.visibility = function(parameters) {
amountInPixels
;
// assign callback
if(amount !== undefined && newCallback !== undefined) {
if(amount && newCallback) {
settings.onPassed[amount] = newCallback;
}
else if(amount !== undefined) {
@ -1057,6 +1057,8 @@ $.fn.visibility = function(parameters) {
if(instance === undefined) {
module.initialize();
}
instance.save.scroll();
instance.save.calculations();
module.invoke(query);
}
else {

Loading…
Cancel
Save