Keep cleaning and refactoring styles and samples.

This commit is contained in:
Paulo Veiga
2012-02-02 00:13:29 -03:00
parent b37ecd8c2c
commit b6dd7712f9
23 changed files with 317 additions and 1276 deletions

View File

@@ -28,10 +28,10 @@ mindplot.DesignerUndoManager = new Class({
enqueue:function(command) {
$assert(command, "Command can not be null");
var length = this._undoQueue.length;
if (command.discartDuplicated && length > 0) {
if (command.discardDuplicated && length > 0) {
// Skip duplicated events ...
var lastItem = this._undoQueue[length - 1];
if (lastItem.discartDuplicated != command.discartDuplicated) {
if (lastItem.discardDuplicated != command.discardDuplicated) {
this._undoQueue.push(command);
}
} else {