diff options
Diffstat (limited to 'framework/Web/Javascripts/js/debug/prado.js')
-rw-r--r-- | framework/Web/Javascripts/js/debug/prado.js | 3 |
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;
|