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

Unified Diff: lib/elemHide.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/elemHide.js
===================================================================
--- a/lib/elemHide.js
+++ b/lib/elemHide.js
@@ -374,17 +374,19 @@ let ElemHide = exports.ElemHide =
ElemHide.applied = false;
}
},
/**
* Retrieves the currently applied stylesheet URL
* @type String
*/
- get styleURL() ElemHide.applied ? styleURL.spec : null,
+ get styleURL() {
Wladimir Palant 2014/05/15 07:12:38 Nit: Bracket should go on the next line.
+ return ElemHide.applied ? styleURL.spec : null;
+ },
/**
* Retrieves an element hiding filter by the corresponding protocol key
*/
getFilterByKey: function(/**String*/ key) /**Filter*/
{
return (key in filterByKey ? filterByKey[key] : null);
},

Powered by Google App Engine
This is Rietveld