mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-14 18:57:56 +01:00
Add additional log information
This commit is contained in:
parent
031bbe50e1
commit
7feb29b151
@ -72,14 +72,11 @@ web2d.peer.svg.ElementPeer = new Class({
|
||||
var children = this.getChildren();
|
||||
|
||||
// Remove from children array ...
|
||||
var length = children.length;
|
||||
var oldLength = children.length;
|
||||
|
||||
children.erase(elementPeer);
|
||||
$assert(children.length < oldLength, "element could not be removed:" + elementPeer);
|
||||
|
||||
var newLength = children.length;
|
||||
if (newLength >= length) {
|
||||
throw "Could not remove the element.";
|
||||
}
|
||||
// Append element as a child.
|
||||
this._native.removeChild(elementPeer._native);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user