Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Commit

Permalink
Post linting bug fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marina Samuel committed Aug 21, 2015
1 parent b365a2b commit d328314
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
if (document.hidden) {
addEventListener("visibilitychange", this);
} else {
setTimeout(this.onPageFirstVisible, 0);
setTimeout(this.onPageFirstVisible.bind(this), 0);
}

// Initialize and render the grid.
Expand Down
2 changes: 1 addition & 1 deletion js/sites.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
this._node.addEventListener("dragend", this, false);
this._node.addEventListener("mouseover", this, false);

gNewTab.registerListener("NewTab:${this.url}URI",
gNewTab.registerListener(`NewTab:${this.url}URI`,
this._getURI.bind(this));

// Specially treat the sponsored icon & suggested explanation
Expand Down
2 changes: 1 addition & 1 deletion js/transformations.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
*/
_getNodeOpacity(aNode) {
let cstyle = window.getComputedStyle(aNode, null);
return cstyle.getPropertyValue("opacity");
return Number.parseInt(cstyle.getPropertyValue("opacity"), 10);
},

/**
Expand Down

0 comments on commit d328314

Please sign in to comment.