ライブラリ更新
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5711 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
40d4f86cc9
commit
dcc364a4f1
@ -96,8 +96,8 @@
|
|||||||
window['piro.sakura.ne.jp'].operationHistory = {
|
window['piro.sakura.ne.jp'].operationHistory = {
|
||||||
revision : currentRevision,
|
revision : currentRevision,
|
||||||
|
|
||||||
kMAX_ENTRIES : 999,
|
MAX_ENTRIES : 999,
|
||||||
kWINDOW_ID : 'ui-operation-global-history-window-id',
|
WINDOW_ID : 'ui-operation-global-history-window-id',
|
||||||
|
|
||||||
// old name, for backward compatibility
|
// old name, for backward compatibility
|
||||||
addEntry : function()
|
addEntry : function()
|
||||||
@ -127,7 +127,7 @@
|
|||||||
if (!wasInUndoableTask && !this._doingUndo && options.data) {
|
if (!wasInUndoableTask && !this._doingUndo && options.data) {
|
||||||
entries = entries.slice(0, history.index+1);
|
entries = entries.slice(0, history.index+1);
|
||||||
entries.push(options.data);
|
entries.push(options.data);
|
||||||
entries = entries.slice(-this.kMAX_ENTRIES);
|
entries = entries.slice(-this.MAX_ENTRIES);
|
||||||
|
|
||||||
history.entries = entries;
|
history.entries = entries;
|
||||||
history.index = entries.length-1;
|
history.index = entries.length-1;
|
||||||
@ -217,18 +217,18 @@
|
|||||||
|
|
||||||
getWindowId : function(aWindow)
|
getWindowId : function(aWindow)
|
||||||
{
|
{
|
||||||
var windowId = aWindow.document.documentElement.getAttribute(this.kWINDOW_ID);
|
var windowId = aWindow.document.documentElement.getAttribute(this.WINDOW_ID);
|
||||||
try {
|
try {
|
||||||
if (!windowId)
|
if (!windowId)
|
||||||
windowId = this.SessionStore.getWindowValue(aWindow, this.kWINDOW_ID);
|
windowId = this.SessionStore.getWindowValue(aWindow, this.WINDOW_ID);
|
||||||
}
|
}
|
||||||
catch(e) {
|
catch(e) {
|
||||||
}
|
}
|
||||||
if (!windowId) {
|
if (!windowId) {
|
||||||
windowId = 'window-'+Date.now()+parseInt(Math.random() * 65000);
|
windowId = 'window-'+Date.now()+parseInt(Math.random() * 65000);
|
||||||
aWindow.document.documentElement.setAttribute(this.kWINDOW_ID, windowId);
|
aWindow.document.documentElement.setAttribute(this.WINDOW_ID, windowId);
|
||||||
try {
|
try {
|
||||||
this.SessionStore.setWindowValue(aWindow, this.kWINDOW_ID, windowId);
|
this.SessionStore.setWindowValue(aWindow, this.WINDOW_ID, windowId);
|
||||||
}
|
}
|
||||||
catch(e) {
|
catch(e) {
|
||||||
}
|
}
|
||||||
@ -315,7 +315,7 @@
|
|||||||
|
|
||||||
var tableName = encodeURIComponent(name);
|
var tableName = encodeURIComponent(name);
|
||||||
|
|
||||||
var windowId = w ? this.getWindowId(window) : null ;
|
var windowId = w ? this.getWindowId(w) : null ;
|
||||||
if (windowId)
|
if (windowId)
|
||||||
tableName += '::'+windowId;
|
tableName += '::'+windowId;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user