Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(422)

Unified Diff: ui/webui/resources/cr_elements/cr_slider/cr_slider.js

Issue 2649663002: WebUI: Undo some usages of ES6 features that break uglify. (Closed)
Patch Set: Fix i->j Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/webui/resources/cr_elements/cr_scrollable_behavior.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/cr_elements/cr_slider/cr_slider.js
diff --git a/ui/webui/resources/cr_elements/cr_slider/cr_slider.js b/ui/webui/resources/cr_elements/cr_slider/cr_slider.js
index 0d4d6107c3465c37d6ade85b4ac5e554d8acbf57..128ddfaa3548b253622a9f63fcc59116dc00f70a 100644
--- a/ui/webui/resources/cr_elements/cr_slider/cr_slider.js
+++ b/ui/webui/resources/cr_elements/cr_slider/cr_slider.js
@@ -56,7 +56,7 @@ Polymer({
*/
valueChanged_: function() {
// First update the slider settings if |tickValues| was set.
- let numTicks = Math.max(1, this.tickValues.length);
+ var numTicks = Math.max(1, this.tickValues.length);
this.$.slider.max = numTicks - 1;
// Limit the number of ticks to 10 to keep the slider from looking too busy.
/** @const */ var MAX_TICKS = 10;
« no previous file with comments | « ui/webui/resources/cr_elements/cr_scrollable_behavior.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698