Class Instance
Class defined in:src/instance.js:5
create new hammer instance all methods should return the instance itself, so it is chainable.
Hammer.Instance
Parameters:
Instance
( element, [options={}]
)
src/instance.js:5
Parameters:
-
element
<HTMLElement> -
[options={}]
<Object>options are merged with
Hammer.defaults
Returns: <Hammer.Instance>
chainable
enable
( state
)
src/instance.js:139
enable of disable hammer.js detection
Parameters:-
state
<Boolean>
eventHandlers
<Array>
src/instance.js:66
keep a list of user event handlers which needs to be removed when calling 'dispose'
eventStartHandler
<Object>
src/instance.js:53
event start handler on the element to start the detection
options
<Object>
src/instance.js:35
options, merged with the defaults options with an _ are converted to camelCase