Home Reference Source Test
public class | source

Binder

A chainable object that contains a single element to be bound upon. Called from ZingTouch.bind(), and is used to chain over gesture callbacks.

Test:

Constructor Summary

Public Constructor
public

constructor(element: Element, bindOnce: Boolean, state: Object): Object

Constructor function for the Binder class.

Member Summary

Public Members
public

The element to bind gestures to.

Public Constructors

public constructor(element: Element, bindOnce: Boolean, state: Object): Object source

Constructor function for the Binder class.

Params:

NameTypeAttributeDescription
element Element

The element to bind gestures to.

bindOnce Boolean

Option to bind once and only emit the event once.

state Object

The state of the Region that is being bound to.

Return:

Object

Returns 'this' to be chained over and over again.

Public Members

public element: Element source

The element to bind gestures to.