Removed some leftover code
This commit is contained in:
parent
8975101925
commit
d934992cdf
|
@ -2251,33 +2251,6 @@ Node.prototype._onExpand = function (recurse) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Remove this node
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
Node.prototype._onRemove = function() {
|
|
||||||
this.editor.highlighter.unhighlight();
|
|
||||||
var parent = this.parent;
|
|
||||||
var index = this.getIndex();
|
|
||||||
|
|
||||||
// adjust the focus
|
|
||||||
var oldSelection = this.editor.getSelection();
|
|
||||||
Node.blurNodes(this);
|
|
||||||
var newSelection = this.editor.getSelection();
|
|
||||||
|
|
||||||
// remove the node
|
|
||||||
this.parent._remove(this);
|
|
||||||
|
|
||||||
// store history action
|
|
||||||
this.editor._onAction('removeNodes', {
|
|
||||||
nodes: [this],
|
|
||||||
parent: parent,
|
|
||||||
index: index,
|
|
||||||
oldSelection: oldSelection,
|
|
||||||
newSelection: newSelection
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove nodes
|
* Remove nodes
|
||||||
* @param {Node[] | Node} nodes
|
* @param {Node[] | Node} nodes
|
||||||
|
|
Loading…
Reference in New Issue