From c091f50aa7bef2371eda7c5f5cf9e5b3370e70f6 Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 13 Jul 2015 18:36:15 -0400 Subject: [PATCH] #2615 re-order settings --- src/definitions/behaviors/visibility.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/definitions/behaviors/visibility.js b/src/definitions/behaviors/visibility.js index ff16e4373..1623702f7 100644 --- a/src/definitions/behaviors/visibility.js +++ b/src/definitions/behaviors/visibility.js @@ -1137,12 +1137,18 @@ $.fn.visibility.settings = { // whether to use mutation observers to follow changes observeChanges : true, + // check position immediately on init + initialCheck : true, + // whether to refresh calculations after all page images load refreshOnLoad : true, // whether to refresh calculations after page resize event refreshOnResize : true, + // should call callbacks on refresh event (resize, etc) + checkOnRefresh : true, + // callback should only occur one time once : true, @@ -1158,9 +1164,6 @@ $.fn.visibility.settings = { // scroll context for visibility checks context : window, - // check position immediately on init - initialCheck : true, - // visibility check delay in ms (defaults to animationFrame) throttle : false, @@ -1174,9 +1177,6 @@ $.fn.visibility.settings = { // array of callbacks for percentage onPassed : {}, - // should call callbacks on refresh event (resize, etc) - checkOnRefresh : true, - // standard callbacks onOnScreen : false, onOffScreen : false,