More more more fixes.

This commit is contained in:
Paulo Veiga
2011-10-15 13:23:27 -03:00
parent 024585c321
commit cb6302bf50
55 changed files with 288 additions and 437 deletions

View File

@@ -341,10 +341,8 @@ mindplot.Designer = new Class({
},
needsSave : function() {
//@Todo: Review all this ...
// return this._actionDispatcher.hasBeenChanged();
return true;
return this._actionDispatcher._actionRunner.hasBeenChanged();
},
save : function(onSavedHandler, saveHistory) {
@@ -391,11 +389,12 @@ mindplot.Designer = new Class({
},
undo : function() {
this._actionRunner.undo();
// @Todo: This is a hack...
this._actionDispatcher._actionRunner.undo();
},
redo : function() {
this._actionRunner.redo();
this._actionDispatcher._actionRunner.redo();
},
_nodeModelToNodeGraph : function(nodeModel, isVisible) {