Skip to content

Commit

Permalink
Ignore: use init instead of initPanel for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
fofajardo committed Apr 13, 2018
1 parent 535485e commit 629e50c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions content/cookies.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var cookieWindow = document.getElementById("CookiesDialog"); ;
var cookieWindow = document.getElementById("CookiesDialog");

var AiOS_Cookies = {
initPanel: function () {
init: function () {
try {
var enable_layout = AiOS_HELPER.prefBranchAiOS.getBoolPref("ks.layout");
var enable_layoutall = AiOS_HELPER.prefBranchAiOS.getBoolPref("ks.layoutall");
Expand Down Expand Up @@ -46,4 +46,4 @@ var AiOS_Cookies = {
}
}

window.addEventListener("DOMContentLoaded", AiOS_Cookies.initPanel, false);
window.addEventListener("DOMContentLoaded", AiOS_Cookies.init, false);
4 changes: 2 additions & 2 deletions content/multipanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var AiOS_MP = {
* Initialization
* => Called by onload
*/
initPanel: function () {
init: function () {
// Set sidebar/window title
AiOS_MP.setSBLabel();

Expand Down Expand Up @@ -444,7 +444,7 @@ var panelProgressListener = {
};

// Add automatic update listener & remove
window.addEventListener("load", AiOS_MP.initPanel, false);
window.addEventListener("load", AiOS_MP.init, false);

window.addEventListener("unload", function (e) {
if (top.gBrowser && top.gBrowser.removeProgressListener)
Expand Down

0 comments on commit 629e50c

Please sign in to comment.