Waypoint.enableAll()

Parameters

None.

Returns

undefined.

Enables all waypoints. This has the same effect as calling the enable 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()
})