Skip to content

Commit

Permalink
L10N should be an IIFE that returns an object, not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
keithclark committed Feb 15, 2017
1 parent 53c97b5 commit c24e115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/firefox/chrome/tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,14 +572,14 @@ let BeaconPropertiesView = {
/**
* Localization convenience methods.
*/
let L10N = function() {
let L10N = (function() {
const stringsBundle = document.getElementById("string-bundle");
return {
getStr: function(x) {
return stringsBundle.getString(x)
}
}
}
}());

/**
* Convenient way of emitting events from the panel window.
Expand Down

0 comments on commit c24e115

Please sign in to comment.