Update library
This commit is contained in:
parent
34adf858d0
commit
92dd8adf82
@ -93,7 +93,7 @@ var TreeStyleTabBookmarksUIService = inherit(TreeStyleTabService, {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
}, Object);
|
||||||
|
|
||||||
TreeStyleTabBookmarksUIService.preInit();
|
TreeStyleTabBookmarksUIService.preInit();
|
||||||
|
|
||||||
|
@ -420,7 +420,7 @@ var TreeStyleTabBookmarksServiceEditable = inherit(TreeStyleTabBookmarksUIServic
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
}, Object);
|
||||||
|
|
||||||
window.addEventListener('DOMContentLoaded', TreeStyleTabBookmarksServiceEditable, false);
|
window.addEventListener('DOMContentLoaded', TreeStyleTabBookmarksServiceEditable, false);
|
||||||
ReferenceCounter.add('window,DOMContentLoaded,TreeStyleTabBookmarksServiceEditable,false');
|
ReferenceCounter.add('window,DOMContentLoaded,TreeStyleTabBookmarksServiceEditable,false');
|
||||||
|
@ -102,7 +102,7 @@ var AutoHideConstants = Object.freeze(inherit(TreeStyleTabConstants, {
|
|||||||
MOUSE_POSITION_INSIDE : (1 << 1),
|
MOUSE_POSITION_INSIDE : (1 << 1),
|
||||||
MOUSE_POSITION_NEAR : (1 << 2),
|
MOUSE_POSITION_NEAR : (1 << 2),
|
||||||
MOUSE_POSITION_SENSITIVE : (1 << 1) | (1 << 2)
|
MOUSE_POSITION_SENSITIVE : (1 << 1) | (1 << 2)
|
||||||
}));
|
}, Object));
|
||||||
|
|
||||||
|
|
||||||
function AutoHideBase(aTabBrowser)
|
function AutoHideBase(aTabBrowser)
|
||||||
@ -175,7 +175,7 @@ AutoHideBase.prototype = inherit(AutoHideConstants, {
|
|||||||
this.treeStyleTab.setWindowValue(this.kMODE + '-fullscreen', aValue);
|
this.treeStyleTab.setWindowValue(this.kMODE + '-fullscreen', aValue);
|
||||||
return aValue;
|
return aValue;
|
||||||
}
|
}
|
||||||
});
|
}, Object);
|
||||||
|
|
||||||
|
|
||||||
function AutoHideBrowser(aTabBrowser)
|
function AutoHideBrowser(aTabBrowser)
|
||||||
@ -1576,7 +1576,7 @@ AutoHideBrowser.prototype = inherit(AutoHideBase.prototype, {
|
|||||||
delete this.window;
|
delete this.window;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
}, Object);
|
||||||
|
|
||||||
function AutoHideWindow(aWindow)
|
function AutoHideWindow(aWindow)
|
||||||
{
|
{
|
||||||
@ -1766,5 +1766,5 @@ AutoHideWindow.prototype = inherit(AutoHideBase.prototype, {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
}, Object);
|
||||||
|
|
||||||
|
@ -2361,7 +2361,7 @@ var TreeStyleTabBase = inherit(TreeStyleTabConstants, {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
}, Object);
|
||||||
|
|
||||||
TreeStyleTabBase.init();
|
TreeStyleTabBase.init();
|
||||||
|
|
||||||
|
@ -388,7 +388,7 @@ var TreeStyleTabBookmarksService = inherit(TreeStyleTabConstants, {
|
|||||||
onItemVisited : function TSTBMService_onItemVisited(aID, aHistoryID, aDate) {},
|
onItemVisited : function TSTBMService_onItemVisited(aID, aHistoryID, aDate) {},
|
||||||
onBeginUpdateBatch : function TSTBMService_onBeginUpdateBatch() {},
|
onBeginUpdateBatch : function TSTBMService_onBeginUpdateBatch() {},
|
||||||
onEndUpdateBatch : function TSTBMService_onEndUpdateBatch() {}
|
onEndUpdateBatch : function TSTBMService_onEndUpdateBatch() {}
|
||||||
});
|
}, Object);
|
||||||
|
|
||||||
|
|
||||||
PlacesUIUtils.__treestyletab__openTabset = PlacesUIUtils._openTabset;
|
PlacesUIUtils.__treestyletab__openTabset = PlacesUIUtils._openTabset;
|
||||||
|
@ -7602,5 +7602,5 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
|||||||
return JSON.parse(json);
|
return JSON.parse(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
}, Object);
|
||||||
|
|
||||||
|
@ -192,5 +192,5 @@ ContentBridge.prototype = inherit(TreeStyleTabConstants, {
|
|||||||
}
|
}
|
||||||
return aCoordinates;
|
return aCoordinates;
|
||||||
}
|
}
|
||||||
});
|
}, Object);
|
||||||
|
|
||||||
|
@ -671,4 +671,4 @@ FullTooltipManager.prototype = inherit(TreeStyleTabBase, {
|
|||||||
/width|height/.test(aEvent.propertyName))
|
/width|height/.test(aEvent.propertyName))
|
||||||
this.changingPropertiesCount--;
|
this.changingPropertiesCount--;
|
||||||
}
|
}
|
||||||
});
|
}, Object);
|
||||||
|
@ -447,4 +447,4 @@ GroupTab.prototype = inherit(TreeStyleTabBase, {
|
|||||||
|
|
||||||
this.checkUpdateTreeNow();
|
this.checkUpdateTreeNow();
|
||||||
}
|
}
|
||||||
});
|
}, Object);
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
* @fileOverview inherit, an alternative for __proto__
|
* @fileOverview inherit, an alternative for __proto__
|
||||||
* @author YUKI "Piro" Hiroshi
|
* @author YUKI "Piro" Hiroshi
|
||||||
* @contributor Infocatcher
|
* @contributor Infocatcher
|
||||||
* @version 3
|
* @version 4
|
||||||
*
|
*
|
||||||
* @license
|
* @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
|
* https://github.com/piroor/fxaddonlib-inherit/blob/master/LICENSE
|
||||||
* @url http://github.com/piroor/fxaddonlib-inherit
|
* @url http://github.com/piroor/fxaddonlib-inherit
|
||||||
*/
|
*/
|
||||||
@ -21,23 +21,11 @@ function toPropertyDescriptors(aProperties) {
|
|||||||
return descriptors;
|
return descriptors;
|
||||||
}
|
}
|
||||||
|
|
||||||
function inherit(aParent, aExtraProperties) {
|
function inherit(aParent, aExtraProperties, aObjectClass) {
|
||||||
var global;
|
aObjectClass = aObjectClass || Object;
|
||||||
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;
|
|
||||||
}
|
|
||||||
if (aExtraProperties)
|
if (aExtraProperties)
|
||||||
return ObjectClass.create(aParent, toPropertyDescriptors(aExtraProperties));
|
return aObjectClass.create(aParent, toPropertyDescriptors(aExtraProperties));
|
||||||
else
|
else
|
||||||
return ObjectClass.create(aParent);
|
return aObjectClass.create(aParent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2046,5 +2046,5 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
}, Object);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user