Edit this page

up.event up.off([element], events, [selector], listener)
JavaScript function

Unbinds an event listener previously bound with up.on().

Example

Let's say you are listing to clicks on .button elements:

var listener = function() { ... }
up.on('click', '.button', listener)

You can stop listening to these events like this:

up.off('click', '.button', listener)

Parameters

[element=document] ElementorjQuery optional
events stringorFunction(): string
[selector] string optional
listener Function(event, [element], [data])

The listener function to unbind.

Note that you must pass a reference to the same function reference that was passed to up.on() earlier.