Only send save operation of changes has been perfomed.

Change default SMTP port.
This commit is contained in:
Paulo Gustavo Veiga
2012-07-15 22:20:21 -03:00
parent d304909a86
commit 8d4b336908
9 changed files with 39 additions and 45 deletions

View File

@@ -17,7 +17,7 @@
*/
mindplot.DesignerActionRunner = new Class({
initialize: function(commandContext, notifier) {
initialize:function (commandContext, notifier) {
$assert(commandContext, "commandContext can not be null");
this._undoManager = new mindplot.DesignerUndoManager();
@@ -25,7 +25,7 @@ mindplot.DesignerActionRunner = new Class({
this._notifier = notifier;
},
execute:function(command) {
execute:function (command) {
$assert(command, "command can not be null");
command.execute(this._context);
this._undoManager.enqueue(command);
@@ -34,29 +34,21 @@ mindplot.DesignerActionRunner = new Class({
},
undo: function() {
undo:function () {
this._undoManager.execUndo(this._context);
this.fireChangeEvent();
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.DoLayout);
},
redo: function() {
redo:function () {
this._undoManager.execRedo(this._context);
this.fireChangeEvent();
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.DoLayout);
},
fireChangeEvent : function () {
fireChangeEvent:function () {
var event = this._undoManager.buildEvent();
this._notifier.fireEvent("modelUpdate", event);
},
markAsChangeBase: function() {
return this._undoManager.markAsChangeBase();
},
hasBeenChanged: function() {
return this._undoManager.hasBeenChanged();
}
});