mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-06-30 00:52:52 +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
|
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) {
|
exports.addEventListeners = function(domNode,events) {
|
||||||
$tw.utils.each(events,function(eventInfo) {
|
$tw.utils.each(events,function(eventInfo) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user