- Add support for copy and paste.

This commit is contained in:
Paulo Gustavo Veiga
2012-07-08 18:41:35 -03:00
parent a5acdc7bb7
commit 8175eea928
25 changed files with 446 additions and 326 deletions

View File

@@ -351,7 +351,7 @@ mindplot.persistence.XMLSerializer_Pela = new Class({
// Create a new element ....
var featureType = child.tagName;
var feature = mindplot.TopicFeature.createModel(featureType, topic, attributes);
var feature = mindplot.TopicFeature.createModel(featureType, attributes);
topic.addFeature(feature);
} else if (child.tagName == "text") {
@@ -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)==null) {
if (mindmap.findNodeById(srcId) == null || mindmap.findNodeById(destId) == null) {
return null;
}