summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/js/debug
diff options
context:
space:
mode:
authorwei <>2007-01-17 12:48:20 +0000
committerwei <>2007-01-17 12:48:20 +0000
commit0b0d95eb8df416feb8a54fd517957d08b0cf20d2 (patch)
tree3c5d91317cf9c9b3a5f4e7fb6ce31dce2a14bba1 /framework/Web/Javascripts/js/debug
parent912dc30b43330a3e99a3e1f947ff14de108a3701 (diff)
add dynamic callback repeater test.
Diffstat (limited to 'framework/Web/Javascripts/js/debug')
-rw-r--r--framework/Web/Javascripts/js/debug/prado.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/Web/Javascripts/js/debug/prado.js b/framework/Web/Javascripts/js/debug/prado.js
index 9a6cc823..a1a224b9 100644
--- a/framework/Web/Javascripts/js/debug/prado.js
+++ b/framework/Web/Javascripts/js/debug/prado.js
@@ -2943,6 +2943,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")
{
@@ -2961,6 +2962,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
@@ -2982,6 +2984,7 @@ Prado.Element =
setOptions : function(element, options)
{
var el = $(element);
+ if(!el) return;
if(el && el.tagName.toLowerCase() == "select")
{
el.options.length = options.length;