Skip to content

Commit

Permalink
Issue mozilla#185 - Code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
xabolcs committed Feb 18, 2014
1 parent 767cf37 commit 958ce23
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions extension/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ exports.main = function (options, callbacks) {
});

// If user clicks a panel entry the appropriate command has to be executed
contextPanel.on("message", function ({command: data}) {
if (typeof(data) === "undefined") return;
contextPanel.on("message", function ({command: aData}) {
if (typeof(aData) === "undefined") return;
contextPanel.hide();

switch (data.type) {
switch (aData.type) {
case "log_folder":
// Show the memchaser directory.
let nsLocalFile = CC("@mozilla.org/file/local;1",
Expand Down Expand Up @@ -89,21 +89,21 @@ exports.main = function (options, callbacks) {
panel: contextPanel,
width: 360,
onClick: function () {
contextPanel.postMessage({update: { logger_active: logger.active }});
contextPanel.postMessage({update: { logger_active: logger.active }}, "*");
}
});

// If user hovers over an entry the tooltip has to be updated
widget.on("message", function ({update_tooltip: data}) {
if (typeof(data) === "undefined") return;
if (data === "logger" && logger.active) {
data = "logger_enabled";
widget.on("message", function ({update_tooltip: aData}) {
if (typeof(aData) === "undefined") return;
if (aData === "logger" && logger.active) {
aData = "logger_enabled";
}
else if (data === "logger") {
data = "logger_disabled";
aData = "logger_disabled";
}

widget.tooltip = config.extension.widget_tooltips[data];
widget.tooltip = config.extension.widget_tooltips[aData];
});

memory.reporter.on(config.application.topic_memory_statistics, function (aData) {
Expand Down

0 comments on commit 958ce23

Please sign in to comment.