BEMQuery

BEMQuery

new BEMQuery()

Source:

Methods

off(type, selector, callback) → {BEMQuery}

Source:
Method for removing event listener from the element.
Parameters:
Name Type Description
type String Type of the event.
selector String | function If that parameter is a string, then it's used to construct checking for the event delegation. However if function is passed, then it becomes the event's listener.
callback function If the second parameter is a string, this function will be used as an event's listener.
Returns:
Current BEMQuery instance.
Type
BEMQuery

on(type, selector, callback) → {BEMQuery}

Source:
Method for adding event listener to the element.
Parameters:
Name Type Description
type String Type of the event.
selector String | function If that parameter is a string, then it's used to construct checking for the event delegation. However if function is passed, then it becomes the event's listener.
callback function If the second parameter is a string, this function will be used as an event's listener.
Returns:
Current BEMQuery instance.
Type
BEMQuery