Waypoint.disableAll()
Parameters
None.
Returns
undefined
.
Disables all waypoints. This has the same effect as calling the disable method on every waypoint individually.
Scroll down to view an example.
var enableDisableElements = document.getElementsByClass('enable-disable-all')
for (var i = 0, length = enableDisableElements.length; i < length; i++) {
new Waypoint({
element: enableDisableElements.item(i),
handler: function(direction) {
notify('Waypoint triggered')
},
offset: 'bottom-in-view'
})
}
$('button.disable-all').on('click', function() {
Waypoint.disableAll()
})
$('button.enable-all').on('click', function() {
Waypoint.enableAll()
})