Skip to content

Commit

Permalink
replace all ' with " [issue brianking#38]
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA committed Jan 18, 2015
1 parent fc26b19 commit 83b06ac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions data/remo-ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ document.addEventListener("RemoOpenAddonsManager", function (e) {
self.postMessage("openaddons")
}, false, true);

self.port.on('version', function (version) {
document.getElementById("version").textContent = 'v' + version;
self.port.on("version", function (version) {
document.getElementById("version").textContent = "v" + version;
});
12 changes: 6 additions & 6 deletions data/remo.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ function parseSOPs(sops) {

// Dynamically create entries for available SOPs
items.forEach(function (item) {
var sopItem = document.createElement('li');
var sopLink = document.createElement('a');
var sopIcon = document.createElement('i');
var sopItem = document.createElement("li");
var sopLink = document.createElement("a");
var sopIcon = document.createElement("i");
var sopName = cleanSOPName(item.title);

sopLink.href = cleanSOPUrl(item.title);
Expand All @@ -51,13 +51,13 @@ function cleanSOPUrl(aUrl) {

function handleLinkClick(event) {
var t = event.target;
if (t.nodeName.toLowerCase() == 'a' &&
if (t.nodeName.toLowerCase() == "a" &&
t.parentNode.nodeName.toLowerCase() != "dd")
{
self.port.emit('click-link', t.toString());
self.port.emit("click-link", t.toString());
event.preventDefault();
}
}

// Send link click notifications so we can close the panel
window.addEventListener('click', function(event) { handleLinkClick(event); } , false);
window.addEventListener("click", function(event) { handleLinkClick(event); } , false);
12 changes: 6 additions & 6 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var remowidget = require("sdk/widget");

const self = require("sdk/self");
const simpleStorage = require("sdk/simple-storage");
const pageMod = require('sdk/page-mod');
const pageMod = require("sdk/page-mod");
const tabs = require("sdk/tabs");
var Request = require("sdk/request").Request;
//const protocol = require('protocol');
Expand All @@ -22,7 +22,7 @@ var sops = null;
var panel = require("sdk/panel").Panel({
width: 530,
height: 420,
contentURL: data.url('remo.html'),
contentURL: data.url("remo.html"),
contentScriptFile: [data.url("remo.js"),
data.url("foundation/javascripts/jquery.min.js"),
data.url("foundation/javascripts/foundation.js"),
Expand All @@ -39,7 +39,7 @@ panel.port.on("click-link", function(url) {
remowidget.Widget({
id: "remo-icon",
label: "Mozilla Reps Companion",
contentURL: data.url('Remo16.png'),
contentURL: data.url("Remo16.png"),
panel: panel,
tooltip: "Mozilla Reps Companion",
anchor: "top",
Expand All @@ -52,17 +52,17 @@ remowidget.Widget({
pageMod.PageMod(
{
include: [data.url("remo-start.html"), "about:reps"],
contentScriptWhen: 'ready',
contentScriptWhen: "ready",
contentScriptFile: data.url("remo-ready.js"),
onAttach: function(worker)
{
myworker = worker;

worker.port.emit('version', self.version);
worker.port.emit("version", self.version);

worker.on("message", function(msg)
{
if (msg == 'openaddons') { tabs.open({url: "about:addons"}); }
if (msg == "openaddons") { tabs.open({url: "about:addons"}); }
});
}
});
Expand Down

0 comments on commit 83b06ac

Please sign in to comment.