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

Unified Diff: qunit/common.js

Issue 29371763: Issue 4795 - Use modern JavaScript syntax (Closed)
Patch Set: Created Jan. 13, 2017, 12:11 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: qunit/common.js
diff --git a/qunit/common.js b/qunit/common.js
index 8142b621d4e71d019239b964b1d52bb4fb6943d8..e5ff9bfeb0d071e864299bd888f4f813dd74372a 100644
--- a/qunit/common.js
+++ b/qunit/common.js
@@ -43,9 +43,9 @@ function restoreFilterComponents()
function preparePrefs()
{
this._pbackup = Object.create(null);
- for (var pref in Prefs)
+ for (let pref in Prefs)
{
- var value = Prefs[pref];
+ let value = Prefs[pref];
this._pbackup[pref] = value;
}
Prefs.enabled = true;
@@ -53,7 +53,7 @@ function preparePrefs()
function restorePrefs()
{
- for (var pref in this._pbackup)
+ for (let pref in this._pbackup)
Prefs[pref] = this._pbackup[pref];
}
« chrome/ext/common.js ('K') | « popup.js ('k') | qunit/tests/cssEscaping.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld