Browse Source

Add comments to vis js settings

pull/2069/head
jlukic 9 years ago
parent
commit
a272e92769
2 changed files with 23 additions and 9 deletions
  1. 6
      RELEASE-NOTES.md
  2. 26
      src/definitions/behaviors/visibility.js

6
RELEASE-NOTES.md

@ -10,6 +10,12 @@
- Loader - `inline loader` now has a `centered` variation - Loader - `inline loader` now has a `centered` variation
**Bugs**
- Item - `img` inside of `ui item content` now do not receive formatting by default
**Docs**
- Item - Significant rewrite of `ui item` documentation
### Version 1.10.1-2 - February 24, 2015 ### Version 1.10.1-2 - February 24, 2015
No changes, fixes stale pm component builds No changes, fixes stale pm component builds

26
src/definitions/behaviors/visibility.js

@ -950,19 +950,26 @@ $.fn.visibility.settings = {
name : 'Visibility', name : 'Visibility',
namespace : 'visibility', namespace : 'visibility',
className: {
fixed: 'fixed'
},
observeChanges : true,
debug : false, debug : false,
verbose : false, verbose : false,
performance : true, performance : true,
// whether to use mutation observers to follow changes
observeChanges : true,
// callback should only occur one time
once : true,
// callback should fire continuously whe evaluates to true
continuous : false,
// offset to use with scroll top
offset : 0, offset : 0,
// whether to include margin in elements position
includeMargin : false, includeMargin : false,
// scroll context for visibility checks
context : window, context : window,
// check position immediately on init // check position immediately on init
@ -995,13 +1002,14 @@ $.fn.visibility.settings = {
onTopPassedReverse : false, onTopPassedReverse : false,
onBottomPassedReverse : false, onBottomPassedReverse : false,
once : true,
continuous : false,
// utility callbacks // utility callbacks
onRefresh : function(){}, onRefresh : function(){},
onScroll : function(){}, onScroll : function(){},
className: {
fixed: 'fixed'
},
error : { error : {
method : 'The method you called is not defined.' method : 'The method you called is not defined.'
} }

Loading…
Cancel
Save