} else {
currentNodeElement.setWlxmlMetaAttr(attr, value);
}
+ sandbox.publish('currentNodeElementChanged', currentNodeElement);
},
highlightElement: function(element) {
canvas.highlightElement(element);
start: function() { sandbox.publish('ready'); },
getView: function() { return view.dom; },
setNodeElement: function(nodeElement) {
- if(!nodeElement.sameNode(view.currentNodeElement)) {
- view.setNodeElement(nodeElement);
- }
+ view.setNodeElement(nodeElement);
},
highlightNode: function(id) { view.highlightNode(id); },
dimNode: function(id) { view.dimNode(id); }
commands.updateCurrentNodeElement(nodeElement);
},
+ currentNodeElementChanged: function(nodeElement) {
+ commands.updateCurrentNodeElement(nodeElement);
+ },
+
contentChanged: function() {
dirty.documentCanvas = true;
},