summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Javascripts')
-rw-r--r--framework/Web/Javascripts/extended/base.js8
-rw-r--r--framework/Web/Javascripts/js/prado.js9
2 files changed, 3 insertions, 14 deletions
diff --git a/framework/Web/Javascripts/extended/base.js b/framework/Web/Javascripts/extended/base.js
index 48927b75..06a916d6 100644
--- a/framework/Web/Javascripts/extended/base.js
+++ b/framework/Web/Javascripts/extended/base.js
@@ -1,13 +1,5 @@
/**
- * true if o is an Element Node or document or window. The last two because it's used for onload events
- if you specify strict as true, return false for document or window
- */
-function isElement(o, strict) {
- return o && isObject(o) && ((!strict && (o==window || o==document)) || o.nodeType == 1)
-}
-
-/**
* get element
@ @param element or element id string
@ returns element
diff --git a/framework/Web/Javascripts/js/prado.js b/framework/Web/Javascripts/js/prado.js
index ef28bcd6..1683b3fe 100644
--- a/framework/Web/Javascripts/js/prado.js
+++ b/framework/Web/Javascripts/js/prado.js
@@ -158,9 +158,6 @@ function isList(o){
return o&&isObject(o)&&isArray(o);
}
-function isElement(o,_2){
-return o&&isObject(o)&&((!_2&&(o==window||o==document))||o.nodeType==1);
-}
function $(n,d){
if(isElement(n)){
return n;
@@ -191,9 +188,9 @@ x=d.getElementById(n);
return x;
}
Function.prototype.bindEvent=function(){
-var _6=this,args=$A(arguments),object=args.shift();
-return function(_7){
-return _6.apply(object,[_7||window.event].concat(args));
+var _4=this,args=$A(arguments),object=args.shift();
+return function(_5){
+return _4.apply(object,[_5||window.event].concat(args));
};
};