jscript error and for the life of me I cant figure it out please help me
spose: function () {
///
/// Dispose the behavior
///
this._hideImplementation();
if (this._foregroundElement && this._foregroundElement.parentNode) {
//////////// //the line below is where the error occurs this._foregroundElement.parentNode.removeChild(this._backgroundElement);
if (this._DropShadow) {
this._foregroundElement.parentNode.appendChild(this._popupElement);
this._foregroundElement.parentNode.removeChild(this._foregroundElement);
}
}
this._scrollHandler = null;
this._resizeHandler = null;
if (this._cancelHandler && $get(this._CancelControlID)) {
$removeHandler($get(this._CancelControlID), 'click', this._cancelHandler);
this._cancelHandler = null;
}
if (this._okHandler && $get(this._OkControlID)) {
$removeHandler($get(this._OkControlID), 'click', this._okHandler);
this._okHandler = null;
}
if (this._showHandler) {
$removeHandler(this.get_element(), 'click', this._showHandler);
this._showHandler = null;
}
if (this._hidingAnimationEndedHandler) {
this._onHiding.get_animation().remove_ended(this._hidingAnimationEndedHandler);
}
if (this._showingAnimationEndedHandler) {
this._onShowing.get_animation().remove_ended(this._showingAnimationEndedHandler);
}
Sys.Extended.UI.ModalPopupBehavior.callBaseMethod(this, 'dispose');
},