From e306989c6d03aac37e2557465b4812ea21970065 Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 24 Jan 2007 05:52:22 +0000 Subject: Fixed #517, #519, #521 --- framework/Web/Javascripts/js/debug/prado.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'framework/Web/Javascripts/js/debug/prado.js') diff --git a/framework/Web/Javascripts/js/debug/prado.js b/framework/Web/Javascripts/js/debug/prado.js index a1a224b9..08c7e428 100644 --- a/framework/Web/Javascripts/js/debug/prado.js +++ b/framework/Web/Javascripts/js/debug/prado.js @@ -3264,8 +3264,11 @@ Prado.WebUI.PostBackControl.prototype = this._elementOnClick = null, //capture the element's onclick function this.element = $(options.ID); - if(this.onInit) - this.onInit(options); + if(this.element) + { + if(this.onInit) + this.onInit(options); + } }, onInit : function(options) @@ -3382,8 +3385,11 @@ Object.extend(Prado.WebUI.TRadioButton.prototype, initialize : function(options) { this.element = $(options['ID']); - if(!this.element.checked) - this.onRadioButtonInitialize(options); + if(this.element) + { + if(!this.element.checked) + this.onRadioButtonInitialize(options); + } } }); -- cgit v1.2.3