assets/javascripts/semantic_ui/definitions/behaviors/visibility.js in less-rails-semantic_ui-2.0.2.0 vs assets/javascripts/semantic_ui/definitions/behaviors/visibility.js in less-rails-semantic_ui-2.0.5.0
- old
+ new
@@ -1135,13 +1135,22 @@
performance : true,
// 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,
// callback should fire continuously whe evaluates to true
continuous : false,
@@ -1153,13 +1162,10 @@
includeMargin : false,
// scroll context for visibility checks
context : window,
- // check position immediately on init
- initialCheck : true,
-
// visibility check delay in ms (defaults to animationFrame)
throttle : false,
// special visibility type (image, fixed)
type : false,
@@ -1168,12 +1174,9 @@
transition : 'fade in',
duration : 1000,
// array of callbacks for percentage
onPassed : {},
-
- // should call callbacks on refresh event (resize, etc)
- checkOnRefresh : true,
// standard callbacks
onOnScreen : false,
onOffScreen : false,
onPassing : false,
\ No newline at end of file