diff options
Diffstat (limited to 'framework/Web/Javascripts/extended')
-rw-r--r-- | framework/Web/Javascripts/extended/event.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/Javascripts/extended/event.js b/framework/Web/Javascripts/extended/event.js index 17a5432c..30123efc 100644 --- a/framework/Web/Javascripts/extended/event.js +++ b/framework/Web/Javascripts/extended/event.js @@ -5,7 +5,8 @@ Object.extend(Event, { Event.__observe(w,'load',fn);
},
observe: function(elements, name, observer, useCapture) {
- if(isElement(elements))
+
+ if(!isList(elements))
return this.__observe(elements, name, observer, useCapture);
for(var i=0; i<elements.length; i++)
this.__observe(elements[i], name, observer, useCapture);
@@ -18,7 +19,6 @@ Object.extend(Event, { ((navigator.appVersion.indexOf('AppleWebKit') > 0)
|| element.attachEvent))
name = 'keydown';
-
this._observeAndCache(element, name, observer, useCapture);
}
});
\ No newline at end of file |