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: Wow sorry for those wrong braces, I am so used to a different style that I didn't even realize what… Created May 18, 2014, 10:51 a.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
« no previous file with comments | « lib/appSupport.js ('k') | lib/elemHide.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « lib/appSupport.js ('k') | lib/elemHide.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld