File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
7979 }
8080 } ( config ) ) ,
8181 offset : config . offset ,
82- horizontal : this . options . horizontal
82+ horizontal : this . options . horizontal ,
83+ enabled : this . options . enabled
8384 } ) )
8485 }
8586
@@ -90,6 +91,18 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
9091 }
9192 this . waypoints = [ ]
9293 }
94+
95+ Inview . prototype . disable = function ( ) {
96+ for ( var i = 0 , end = this . waypoints . length ; i < end ; i ++ ) {
97+ this . waypoints [ i ] . disable ( )
98+ }
99+ }
100+
101+ Inview . prototype . enable = function ( ) {
102+ for ( var i = 0 , end = this . waypoints . length ; i < end ; i ++ ) {
103+ this . waypoints [ i ] . enable ( )
104+ }
105+ }
93106
94107 Inview . defaults = {
95108 enter : noop ,
You can’t perform that action at this time.
0 commit comments