mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
+ The tab bar toggle now has a down arrow when clicking on it will pull the tab bar down and an up arrow when it will push the tab bar up (was reversed)
+ The tab bar toggle and decorative strip now reside above the tab candy content in Z + Group titles now have prompt text/icon + Additional documentation (especially Mirror) + Fixed the dev mode features (were broken by the tab bar toggle changes) + The Firefox nav bar now correctly shows again when you create and go to a new tab
This commit is contained in:
parent
947754f10b
commit
c40d196b3f
@ -1,3 +1,4 @@
|
||||
// Title: utils.js
|
||||
(function(){
|
||||
|
||||
const Cc = Components.classes;
|
||||
@ -132,6 +133,9 @@ window.Rect.prototype = {
|
||||
};
|
||||
|
||||
// ##########
|
||||
// Class: Subscribable
|
||||
// A mix-in for allowing objects to collect subscribers for custom events.
|
||||
// Currently supports only onClose.
|
||||
// TODO generalize for any number of events
|
||||
window.Subscribable = function() {
|
||||
this.onCloseSubscribers = null;
|
||||
@ -139,6 +143,9 @@ window.Subscribable = function() {
|
||||
|
||||
window.Subscribable.prototype = {
|
||||
// ----------
|
||||
// Function: addOnClose
|
||||
// The given callback will be called when the Subscribable fires its onClose.
|
||||
// The referenceElement is used to facilitate removal if necessary.
|
||||
addOnClose: function(referenceElement, callback) {
|
||||
if(!this.onCloseSubscribers)
|
||||
this.onCloseSubscribers = [];
|
||||
@ -159,6 +166,8 @@ window.Subscribable.prototype = {
|
||||
},
|
||||
|
||||
// ----------
|
||||
// Function: removeOnClose
|
||||
// Removes the callback associated with referenceElement for onClose notification.
|
||||
removeOnClose: function(referenceElement) {
|
||||
if(!this.onCloseSubscribers)
|
||||
return;
|
||||
@ -169,6 +178,8 @@ window.Subscribable.prototype = {
|
||||
},
|
||||
|
||||
// ----------
|
||||
// Function: _sendOnClose
|
||||
// Internal routine. Used by the Subscribable to fire onClose events.
|
||||
_sendOnClose: function() {
|
||||
if(!this.onCloseSubscribers)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user