Fix deleteDOMNode() -> removeDOMNode(), fixes labels for selectboxes, probably others

This commit is contained in:
Nathan Gray 2011-10-12 16:37:56 +00:00
parent a09c277ae7
commit ea406d3e85
2 changed files with 3 additions and 3 deletions

View File

@ -193,7 +193,7 @@ var et2_inputWidget = et2_valueWidget.extend(et2_IInput, {
// Delete the labelContainer from the surroundings object
if (this._labelContainer)
{
this.getSurroundings().deleteDOMNode(this._labelContainer[0]);
this.getSurroundings().removeDOMNode(this._labelContainer[0]);
}
this._labelContainer = null;
}

View File

@ -107,9 +107,9 @@ var et2_url = et2_textbox.extend({
else
{
if(this._button) this._button.hide();
if(this._button && this.getSurroundings && this.getSurroundings().deleteDOMNode)
if(this._button && this.getSurroundings && this.getSurroundings().removeDOMNode)
{
this.getSurroundings().deleteDOMNode(this._button[0]);
this.getSurroundings().removeDOMNode(this._button[0]);
}
this._button = null;
}