fastbinder
Advanced tools
Comparing version 0.3.9 to 0.3.10
@@ -106,10 +106,22 @@ /** | ||
if (typeof beforeFn === 'function') { | ||
beforeFn({ controller: controller, handler: handler, targetElement: target[0] }); | ||
beforeFn({ | ||
controller: controller, | ||
handler: handler, | ||
eventType: eventType, | ||
targetElement: target[0] | ||
}); | ||
} | ||
return controllerHandlerFn.call(target[0], e); | ||
} | ||
if (typeof handlerFn === 'function') { | ||
if (typeof beforeFn === 'function') { | ||
beforeFn({ handler: handler, targetElement: target[0] }); | ||
beforeFn({ | ||
handler: handler, | ||
eventType: eventType, | ||
targetElement: target[0] | ||
}); | ||
} | ||
return handlerFn.call(target[0], e); | ||
@@ -116,0 +128,0 @@ } |
{ | ||
"name": "fastbinder", | ||
"description": "Fast and worry-free dynamic event binding", | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"repository": "https://github.com/andrewchilds/fastbinder.git", | ||
@@ -6,0 +6,0 @@ "author": { |
876596
18418