mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Improve docs for $tw.utils.addEventListeners()
This commit is contained in:
parent
fa3d4fdc75
commit
4a663d1661
@ -151,6 +151,12 @@ exports.pulseElement = function(element) {
|
||||
|
||||
/*
|
||||
Attach specified event handlers to a DOM node
|
||||
domNode: where to attach the event handlers
|
||||
events: array of event handlers to be added (see below)
|
||||
Each entry in the events array is an object with these properties:
|
||||
handlerFunction: optional event handler function
|
||||
handlerObject: optional event handler object
|
||||
handlerMethod: optionally specifies object handler method name (defaults to `handleEvent`)
|
||||
*/
|
||||
exports.addEventListeners = function(domNode,events) {
|
||||
$tw.utils.each(events,function(eventInfo) {
|
||||
|
Loading…
Reference in New Issue
Block a user