aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jqLite.js')
-rw-r--r--src/jqLite.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index a1203739..5e9d777a 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -351,11 +351,10 @@ forEach({
dealoc: JQLiteDealoc,
bind: function(element, type, fn){
- var bind = JQLiteData(element, 'bind'),
- eventHandler;
+ var bind = JQLiteData(element, 'bind');
if (!bind) JQLiteData(element, 'bind', bind = {});
forEach(type.split(' '), function(type){
- eventHandler = bind[type];
+ var eventHandler = bind[type];
if (!eventHandler) {
bind[type] = eventHandler = function(event) {
if (!event.preventDefault) {