Several fixes added.

This commit is contained in:
Paulo Veiga
2011-08-04 22:12:53 -03:00
parent 63cda0a170
commit 0b3083d50c
14 changed files with 129 additions and 7771 deletions

View File

@@ -17,10 +17,12 @@
*/
mindplot.DesignerUndoManager = new Class({
initialize: function() {
initialize: function(fireChange) {
this._undoQueue = [];
this._redoQueue = [];
this._baseId = 0;
this._fireChange = fireChange;
},
enqueue:function(command) {
@@ -55,7 +57,7 @@ mindplot.DesignerUndoManager = new Class({
}
},
_buildEvent: function() {
buildEvent: function() {
return {undoSteps: this._undoQueue.length, redoSteps:this._redoQueue.length};
},