Edit this page

up.layer up.layer.off(types, listener)
JavaScript function

Unbinds an event listener previously bound to the current layer.

This is a shortcut for up.layer.current.off(). See up.Layer#off() for more documentation.


Observed events

types
required

The event types to unbind.

Multiple event types may be passed as either a space-separated string ('foo bar'), a comma-separated string ('foo, bar') or as an array of types (['foo', 'bar']).

stringFunction(): string

Listener

listener
required

The listener function to unbind.

You must pass a reference to the same function reference that was used to register the listener.

Function(event, [element], [data])