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

@@ -411,7 +411,7 @@ mindplot.persistence.XMLSerializer_Pela = new Class({
return null;
}
// Is the connections points valid ?. If it's not, do not load the relationship ...
if (mindmap.findNodeById(srcId) == null || mindmap.findNodeById(destId)) {
if (mindmap.findNodeById(srcId) == null || mindmap.findNodeById(destId)==null) {
return null;
}