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

Commit

Permalink
Bug 897899 - In Chrome, console.log and console.warn need to be bound…
Browse files Browse the repository at this point in the history
… to the console object
  • Loading branch information
stasm committed Jul 25, 2013
1 parent 53a5e92 commit 7e85b2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bindings/l20n/gaia.js
Expand Up @@ -98,8 +98,8 @@ define(function (require, exports, module) {
}

function bindPublicAPI() {
ctx.addEventListener('error', console.warn);
ctx.addEventListener('debug', console.error);
ctx.addEventListener('error', console.warn.bind(console));
ctx.addEventListener('debug', console.error.bind(console));

ctx.localizeNode = function localizeNode(node) {
var nodes = getNodes(node);
Expand Down
4 changes: 2 additions & 2 deletions bindings/l20n/html.js
Expand Up @@ -84,8 +84,8 @@ define(function (require, exports, module) {
}

function bindPublicAPI() {
ctx.addEventListener('error', console.warn);
ctx.addEventListener('debug', console.error);
ctx.addEventListener('error', console.warn.bind(console));
ctx.addEventListener('debug', console.error.bind(console));

ctx.localizeNode = function localizeNode(node) {
var nodes = getNodes(node);
Expand Down

0 comments on commit 7e85b2d

Please sign in to comment.