Update library

This commit is contained in:
YUKI Hiroshi 2016-09-07 15:53:01 +09:00
parent 34adf858d0
commit 92dd8adf82
11 changed files with 20 additions and 32 deletions

View File

@ -93,7 +93,7 @@ var TreeStyleTabBookmarksUIService = inherit(TreeStyleTabService, {
}
}
});
}, Object);
TreeStyleTabBookmarksUIService.preInit();

View File

@ -420,7 +420,7 @@ var TreeStyleTabBookmarksServiceEditable = inherit(TreeStyleTabBookmarksUIServic
}
}
});
}, Object);
window.addEventListener('DOMContentLoaded', TreeStyleTabBookmarksServiceEditable, false);
ReferenceCounter.add('window,DOMContentLoaded,TreeStyleTabBookmarksServiceEditable,false');

View File

@ -102,7 +102,7 @@ var AutoHideConstants = Object.freeze(inherit(TreeStyleTabConstants, {
MOUSE_POSITION_INSIDE : (1 << 1),
MOUSE_POSITION_NEAR : (1 << 2),
MOUSE_POSITION_SENSITIVE : (1 << 1) | (1 << 2)
}));
}, Object));
function AutoHideBase(aTabBrowser)
@ -175,7 +175,7 @@ AutoHideBase.prototype = inherit(AutoHideConstants, {
this.treeStyleTab.setWindowValue(this.kMODE + '-fullscreen', aValue);
return aValue;
}
});
}, Object);
function AutoHideBrowser(aTabBrowser)
@ -1576,7 +1576,7 @@ AutoHideBrowser.prototype = inherit(AutoHideBase.prototype, {
delete this.window;
}
});
}, Object);
function AutoHideWindow(aWindow)
{
@ -1766,5 +1766,5 @@ AutoHideWindow.prototype = inherit(AutoHideBase.prototype, {
}
}
});
}, Object);

View File

@ -2361,7 +2361,7 @@ var TreeStyleTabBase = inherit(TreeStyleTabConstants, {
);
}
});
}, Object);
TreeStyleTabBase.init();

View File

@ -388,7 +388,7 @@ var TreeStyleTabBookmarksService = inherit(TreeStyleTabConstants, {
onItemVisited : function TSTBMService_onItemVisited(aID, aHistoryID, aDate) {},
onBeginUpdateBatch : function TSTBMService_onBeginUpdateBatch() {},
onEndUpdateBatch : function TSTBMService_onEndUpdateBatch() {}
});
}, Object);
PlacesUIUtils.__treestyletab__openTabset = PlacesUIUtils._openTabset;

View File

@ -7602,5 +7602,5 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
return JSON.parse(json);
}
});
}, Object);

View File

@ -192,5 +192,5 @@ ContentBridge.prototype = inherit(TreeStyleTabConstants, {
}
return aCoordinates;
}
});
}, Object);

View File

@ -671,4 +671,4 @@ FullTooltipManager.prototype = inherit(TreeStyleTabBase, {
/width|height/.test(aEvent.propertyName))
this.changingPropertiesCount--;
}
});
}, Object);

View File

@ -447,4 +447,4 @@ GroupTab.prototype = inherit(TreeStyleTabBase, {
this.checkUpdateTreeNow();
}
});
}, Object);

View File

@ -2,10 +2,10 @@
* @fileOverview inherit, an alternative for __proto__
* @author YUKI "Piro" Hiroshi
* @contributor Infocatcher
* @version 3
* @version 4
*
* @license
* The MIT License, Copyright (c) 2014 YUKI "Piro" Hiroshi.
* The MIT License, Copyright (c) 2014-2016 YUKI "Piro" Hiroshi.
* https://github.com/piroor/fxaddonlib-inherit/blob/master/LICENSE
* @url http://github.com/piroor/fxaddonlib-inherit
*/
@ -21,23 +21,11 @@ function toPropertyDescriptors(aProperties) {
return descriptors;
}
function inherit(aParent, aExtraProperties) {
var global;
if (Components.utils.getGlobalForObject)
global = Components.utils.getGlobalForObject(aParent);
else
global = aParent.valueOf.call();
global = global || this;
var ObjectClass = global.Object || Object;
if (!ObjectClass.create) {
aExtraProperties = aExtraProperties || new ObjectClass;
aExtraProperties.__proto__ = aParent;
return aExtraProperties;
}
function inherit(aParent, aExtraProperties, aObjectClass) {
aObjectClass = aObjectClass || Object;
if (aExtraProperties)
return ObjectClass.create(aParent, toPropertyDescriptors(aExtraProperties));
return aObjectClass.create(aParent, toPropertyDescriptors(aExtraProperties));
else
return ObjectClass.create(aParent);
return aObjectClass.create(aParent);
}

View File

@ -2046,5 +2046,5 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
}
}
});
}, Object);