From 0a7fa134e23520fb5a18fb7bcb58ea0d6fe168b7 Mon Sep 17 00:00:00 2001 From: piro Date: Mon, 4 Jan 2010 04:11:41 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=A4=E3=83=99=E3=83=B3=E3=83=88=E3=82=BF?= =?UTF-8?q?=E3=82=A4=E3=83=97=E3=82=92=E5=88=86=E3=81=91=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5693 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/res/operationHistory.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/treestyletab/res/operationHistory.js b/content/treestyletab/res/operationHistory.js index a4e304af..08ec40cf 100644 --- a/content/treestyletab/res/operationHistory.js +++ b/content/treestyletab/res/operationHistory.js @@ -112,7 +112,7 @@ catch(e) { error = e; } - this._dispatchEvent(options, data, done); + this._dispatchEvent('UIOperationGlobalHistoryUndo', options, data, done); this._doingUndo = false; if (error) throw error; @@ -140,7 +140,7 @@ catch(e) { error = e; } - this._dispatchEvent(options, data, done); + this._dispatchEvent('UIOperationGlobalHistoryRedo', options, data, done); this._doingUndo = false; if (error) throw error; @@ -214,11 +214,11 @@ window.removeEventListener('unload', this, false); }, - _dispatchEvent : function(aOptions, aData, aDone) + _dispatchEvent : function(aType, aOptions, aData, aDone) { var d = aOptions.window ? aOptions.window.document : document ; var event = d.createEvent('Events'); - event.initEvent('UIOperationGlobalHistoryUndo', true, false); + event.initEvent(aType, true, false); event.name = aOptions.name; event.data = aData; event.done = aDone;