mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 23:27:30 +09:00
Using "function()" in browser.js - consistency with the surrounding code
Issue #430
This commit is contained in:
parent
829ce72d6d
commit
083436313c
1 changed files with 3 additions and 3 deletions
|
|
@ -333,14 +333,14 @@ var gFindBarSettings = {
|
||||||
prefName: "accessibility.typeaheadfind",
|
prefName: "accessibility.typeaheadfind",
|
||||||
findAsYouType: null,
|
findAsYouType: null,
|
||||||
|
|
||||||
init() {
|
init: function() {
|
||||||
window.messageManager.addMessageListener(this.messageName, this);
|
window.messageManager.addMessageListener(this.messageName, this);
|
||||||
|
|
||||||
gPrefService.addObserver(this.prefName, this, false);
|
gPrefService.addObserver(this.prefName, this, false);
|
||||||
this.writeFindAsYouType();
|
this.writeFindAsYouType();
|
||||||
},
|
},
|
||||||
|
|
||||||
uninit() {
|
uninit: function() {
|
||||||
window.messageManager.removeMessageListener(this.messageName, this);
|
window.messageManager.removeMessageListener(this.messageName, this);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
@ -362,7 +362,7 @@ var gFindBarSettings = {
|
||||||
this.findAsYouType = gPrefService.getBoolPref(this.prefName);
|
this.findAsYouType = gPrefService.getBoolPref(this.prefName);
|
||||||
},
|
},
|
||||||
|
|
||||||
receiveMessage(aMessage) {
|
receiveMessage: function(aMessage) {
|
||||||
switch (aMessage.name) {
|
switch (aMessage.name) {
|
||||||
case this.messageName:
|
case this.messageName:
|
||||||
// If the find bar for chrome window's context is not yet alive,
|
// If the find bar for chrome window's context is not yet alive,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue