diff options
author | xue <> | 2006-05-01 15:40:31 +0000 |
---|---|---|
committer | xue <> | 2006-05-01 15:40:31 +0000 |
commit | c5983c0440913cd67f3744c7dda3c3bfc7eee0ed (patch) | |
tree | d20f9c309cb212d309231d8a990fff11b512e973 /framework/Web/Javascripts/prado | |
parent | ddfafaac2c1f18aca0fda3b4157acd935b9ac9a2 (diff) |
Merge from 3.0 branch till 1004.
Diffstat (limited to 'framework/Web/Javascripts/prado')
-rw-r--r-- | framework/Web/Javascripts/prado/element.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/Javascripts/prado/element.js b/framework/Web/Javascripts/prado/element.js index fc84e4b1..06937253 100644 --- a/framework/Web/Javascripts/prado/element.js +++ b/framework/Web/Javascripts/prado/element.js @@ -38,7 +38,7 @@ Prado.Element = else if(el.fireEvent)
{
el.fireEvent('onclick');
- if(isFunction(el.onclick))
+ if(typeof(el.onclick) == "function")
el.onclick();
}
},
@@ -71,7 +71,7 @@ Prado.Element = focus : function(element)
{
var obj = $(element);
- if(isObject(obj) && isdef(obj.focus))
+ if(typeof(obj) != "undefined" && typeof(obj.focus) != "undefined")
setTimeout(function(){ obj.focus(); }, 100);
return false;
}
|