summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/extended
diff options
context:
space:
mode:
authorwei <>2006-01-20 00:54:18 +0000
committerwei <>2006-01-20 00:54:18 +0000
commit66c5465f3d55ea1ce605e2c636adf87ae14b4d95 (patch)
treed143e9f5111a32b2b425f141b00afee94535ae47 /framework/Web/Javascripts/extended
parente4381a808ae847265c854ec3d7f7f97e058e65ee (diff)
Diffstat (limited to 'framework/Web/Javascripts/extended')
-rw-r--r--framework/Web/Javascripts/extended/base.js3
-rw-r--r--framework/Web/Javascripts/extended/util.js2
2 files changed, 2 insertions, 3 deletions
diff --git a/framework/Web/Javascripts/extended/base.js b/framework/Web/Javascripts/extended/base.js
index 8975e1cc..e3ca729b 100644
--- a/framework/Web/Javascripts/extended/base.js
+++ b/framework/Web/Javascripts/extended/base.js
@@ -29,7 +29,6 @@ function $(n,d) {
Function.prototype.bindEvent = function() {
var __method = this, args = $A(arguments), object = args.shift();
return function(event) {
- return __method.apply(object, [event || window.event].concat(args));
+ return __method.call(object, event || window.event, args);
}
}
-
diff --git a/framework/Web/Javascripts/extended/util.js b/framework/Web/Javascripts/extended/util.js
index 47d620b0..fc5ec844 100644
--- a/framework/Web/Javascripts/extended/util.js
+++ b/framework/Web/Javascripts/extended/util.js
@@ -86,6 +86,6 @@ function isElement(o, strict) {
/**
* true if o is an Array or a NodeList, (NodeList in Opera returns a type of function)
*/
-function isList(o) { return o && isObject(o) && (isArray(o) || (o.item && o.tagName.toLowerCase() != "select")) }
+function isList(o) { return o && isObject(o) && isArray(o) }