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

Unified Diff: lib/utils.js

Issue 5485735259930624: Issue 2066 - Get rid of non-standard __defineGetter__, __defineSetter__, and __lookupGetter__ (Closed)
Patch Set: Addressed comment Created March 2, 2015, 7:27 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
« no previous file with comments | « lib/prefs.js ('k') | qunit/common.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/utils.js
===================================================================
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -71,7 +71,7 @@
get appLocale()
{
var locale = ext.i18n.getMessage("@@ui_locale").replace(/_/g, "-");
- this.__defineGetter__("appLocale", function() {return locale});
+ Object.defineProperty(this, "appLocale", {value: locale, enumerable: true});
return this.appLocale;
},
generateChecksum: function(lines)
« no previous file with comments | « lib/prefs.js ('k') | qunit/common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld