名前入れ替え

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5707 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-01-04 06:34:53 +00:00
parent 32fbba16ec
commit db430aa502

View File

@ -98,12 +98,13 @@
kMAX_ENTRIES : 999,
kWINDOW_ID : 'ui-operation-global-history-window-id',
doUndoableTask : function()
// old name, for backward compatibility
addEntry : function()
{
this.addEntry.apply(this, arguments);
this.doUndoableTask.apply(this, arguments);
},
addEntry : function()
doUndoableTask : function()
{
var options = this._getOptionsFromArguments(arguments);
var history = options.history;
@ -122,7 +123,7 @@
error = e;
}
if (!wasInUndoableTask && !this._doingUndo) {
if (!wasInUndoableTask && !this._doingUndo && options.data) {
entries = entries.slice(0, history.index+1);
entries.push(options.data);
entries = entries.slice(-this.kMAX_ENTRIES);