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

Unified Diff: Source/devtools/front_end/network/NetworkPanel.js

Issue 1294003003: Merge 200568 "DevTools: do not use arrow functions unless they a..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2454/
Patch Set: Created 5 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/network/NetworkPanel.js
===================================================================
--- Source/devtools/front_end/network/NetworkPanel.js (revision 200660)
+++ Source/devtools/front_end/network/NetworkPanel.js (working copy)
@@ -206,7 +206,17 @@
var calculator = this._networkLogView.timeCalculator();
this._filmStripView.setModel(filmStripModel, calculator.minimumBoundary() * 1000, calculator.boundarySpan() * 1000);
this._networkOverview.setFilmStripModel(filmStripModel);
- var timestamps = filmStripModel.frames().map((frame) => frame.timestamp / 1000);
+ var timestamps = filmStripModel.frames().map(mapTimestamp);
+
+ /**
+ * @param {!WebInspector.FilmStripModel.Frame} frame
+ * @return {number}
+ */
+ function mapTimestamp(frame)
+ {
+ return frame.timestamp / 1000;
+ }
+
this._networkLogView.addFilmStripFrames(timestamps);
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698