1
0
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:
Jeremy Ruston 2013-09-14 13:47:51 +01:00
parent fa3d4fdc75
commit 4a663d1661

View File

@ -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) {