diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-06-07 05:32:41 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-06-07 05:32:41 +0200 |
commit | d48914545ee1536ae39b02c7c885cfbdd3c8b804 (patch) | |
tree | bfedfd7bcfa6ffe12691eaa3ed41abf8d1dab375 | |
parent | d4e6ea04fd5e741662c6ff3e08b44481a40a651d (diff) | |
download | UXP-d48914545ee1536ae39b02c7c885cfbdd3c8b804.tar UXP-d48914545ee1536ae39b02c7c885cfbdd3c8b804.tar.gz UXP-d48914545ee1536ae39b02c7c885cfbdd3c8b804.tar.lz UXP-d48914545ee1536ae39b02c7c885cfbdd3c8b804.tar.xz UXP-d48914545ee1536ae39b02c7c885cfbdd3c8b804.zip |
Using "function()" in browser.js - consistency with the surrounding code
Issue #430
-rw-r--r-- | application/palemoon/base/content/browser.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js index def8828ec..ba791f709 100644 --- a/application/palemoon/base/content/browser.js +++ b/application/palemoon/base/content/browser.js @@ -333,14 +333,14 @@ var gFindBarSettings = { prefName: "accessibility.typeaheadfind", findAsYouType: null, - init() { + init: function() { window.messageManager.addMessageListener(this.messageName, this); gPrefService.addObserver(this.prefName, this, false); this.writeFindAsYouType(); }, - uninit() { + uninit: function() { window.messageManager.removeMessageListener(this.messageName, this); try { @@ -362,7 +362,7 @@ var gFindBarSettings = { this.findAsYouType = gPrefService.getBoolPref(this.prefName); }, - receiveMessage(aMessage) { + receiveMessage: function(aMessage) { switch (aMessage.name) { case this.messageName: // If the find bar for chrome window's context is not yet alive, |