Minor performance improvement...

This commit is contained in:
Paulo Gustavo Veiga
2012-07-07 13:18:27 -03:00
parent f3da916965
commit 80940b8529
7 changed files with 83 additions and 81 deletions

View File

@@ -189,7 +189,7 @@ mindplot.model.NodeModel = new Class({
findNodeById : function(id) {
var result = null;
if (this.getId() == id) {
return this;
result = this;
} else {
var children = this.getChildren();
for (var i = 0; i < children.length; i++) {