Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/customizableUI.js

Issue 6305806509146112: Issue 427 - Remove non-standard function and getter syntax (Closed)
Patch Set: Convert shorthand function expressions to arrow functions, this of course isn't possible for getter… Created May 10, 2014, 12:43 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/customizableUI.js
===================================================================
--- a/lib/customizableUI.js
+++ b/lib/customizableUI.js
@@ -19,17 +19,17 @@
* @fileOverview This emulates a subset of the CustomizableUI API from Firefox 28.
*/
let {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", null);
let {Utils} = require("utils");
// UI module has to be referenced lazily to avoid circular references
-XPCOMUtils.defineLazyGetter(this, "UI", function() require("ui").UI);
+XPCOMUtils.defineLazyGetter(this, "UI", () => require("ui").UI);
let widgets = Map();
function getToolbox(/**Window*/ window, /**Widget*/ widget) /**Element*/
{
if (!("defaultArea" in widget) || !widget.defaultArea)
return null;

Powered by Google App Engine
This is Rietveld