Bug 1159938 - Remove dead nodeChanged() function;r=pbrosset

This commit is contained in:
Brian Grinstead 2015-05-11 07:47:24 -07:00
Родитель df4762e426
Коммит b7e941ff01
1 изменённых файлов: 4 добавлений и 17 удалений

Просмотреть файл

@ -500,9 +500,9 @@ MarkupView.prototype = {
} else {
let node = this._selectedContainer.node;
if (node.hidden) {
this.walker.unhideNode(node).then(() => this.nodeChanged(node));
this.walker.unhideNode(node);
} else {
this.walker.hideNode(node).then(() => this.nodeChanged(node));
this.walker.hideNode(node);
}
}
break;
@ -1205,15 +1205,6 @@ MarkupView.prototype = {
}
},
/**
* Called when the markup panel initiates a change on a node.
*/
nodeChanged: function(aNode) {
if (aNode === this._inspector.selection.nodeFront) {
this._inspector.change("markupview");
}
},
/**
* Check if the current selection is a descendent of the container.
* if so, make sure it's among the visible set for the container,
@ -2273,13 +2264,9 @@ function TextEditor(aContainer, aNode, aTemplate) {
longstr.release().then(null, console.error);
this.container.undo.do(() => {
this.node.setNodeValue(aVal).then(() => {
this.markup.nodeChanged(this.node);
});
this.node.setNodeValue(aVal);
}, () => {
this.node.setNodeValue(oldValue).then(() => {
this.markup.nodeChanged(this.node);
});
this.node.setNodeValue(oldValue);
});
});
});