diff options
author | wei <> | 2007-01-17 12:48:20 +0000 |
---|---|---|
committer | wei <> | 2007-01-17 12:48:20 +0000 |
commit | 0b0d95eb8df416feb8a54fd517957d08b0cf20d2 (patch) | |
tree | 3c5d91317cf9c9b3a5f4e7fb6ce31dce2a14bba1 /framework/Web/Javascripts/prado | |
parent | 912dc30b43330a3e99a3e1f947ff14de108a3701 (diff) |
add dynamic callback repeater test.
Diffstat (limited to 'framework/Web/Javascripts/prado')
-rw-r--r-- | framework/Web/Javascripts/prado/element.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/Web/Javascripts/prado/element.js b/framework/Web/Javascripts/prado/element.js index 0d08a200..b21782fe 100644 --- a/framework/Web/Javascripts/prado/element.js +++ b/framework/Web/Javascripts/prado/element.js @@ -15,6 +15,7 @@ Prado.Element = select : function(element, method, value, total)
{
var el = $(element);
+ if(!el) return;
var selection = Prado.Element.Selection;
if(typeof(selection[method]) == "function")
{
@@ -33,6 +34,7 @@ Prado.Element = setAttribute : function(element, attribute, value)
{
var el = $(element);
+ if(!el) return;
if((attribute == "disabled" || attribute == "multiple") && value==false)
el.removeAttribute(attribute);
else if(attribute.match(/^on/i)) //event methods
@@ -54,6 +56,7 @@ Prado.Element = setOptions : function(element, options)
{
var el = $(element);
+ if(!el) return;
if(el && el.tagName.toLowerCase() == "select")
{
el.options.length = options.length;
|