From 4a663d1661250924447bae887b1565cd70d3fb8c Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 14 Sep 2013 13:47:51 +0100 Subject: [PATCH] Improve docs for `$tw.utils.addEventListeners()` --- core/modules/utils/dom/dom.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/modules/utils/dom/dom.js b/core/modules/utils/dom/dom.js index 2a1d13e5e..665a27774 100644 --- a/core/modules/utils/dom/dom.js +++ b/core/modules/utils/dom/dom.js @@ -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) {