Add additional log information

This commit is contained in:
Paulo Gustavo Veiga 2012-11-04 23:33:30 -03:00
parent 031bbe50e1
commit 7feb29b151

View File

@ -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);
},