Skip to content

Commit

Permalink
Remove debugging code.
Browse files Browse the repository at this point in the history
  • Loading branch information
graouts committed May 20, 2014
1 parent 059e863 commit 4127e5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,9 @@ UndoManager.prototype = {
if (this._shouldIgnoreRegisterCalls())
return;

var fun = function() {
this.registerFunctionUndo(function() {
target[propertyName] = value;
};
fun.value = value;
this.registerFunctionUndo(fun);
});
},

registerMethodUndo: function(target, method)
Expand Down
13 changes: 0 additions & 13 deletions test.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,6 @@
console.error("\tFAIL:", name);
}

function dumpActions()
{
console.log("Actions", manager._actions.map(function(action) {
if (typeof action === "function")
return action.value;
else {
return action.map(function(subAction) {
return subAction.value;
});
}
}), manager._index, manager.canRedo);
}

function increment(times)
{
while(times--)
Expand Down

0 comments on commit 4127e5d

Please sign in to comment.