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

Unified Diff: Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js

Issue 1295523003: DevTools: do not use arrow functions unless they are in stable. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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 | « Source/devtools/front_end/ui/KeyboardShortcut.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
diff --git a/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js b/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
index 64b6a15a92af12d6375d45f69a11840076a00f1b..dacf39e44aa778743ac71144cca574b3e1e19b64 100644
--- a/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
+++ b/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
@@ -141,7 +141,17 @@ WebInspector.TimelineOverviewPane.prototype = {
{
var document = this.element.ownerDocument;
var x = this._cursorPosition;
- var promises = this._overviewControls.map(control => control.popoverElementPromise(x));
+ var promises = this._overviewControls.map(mapToPopover);
+
+ /**
+ * @param {!WebInspector.TimelineOverview} control
+ * @return {!Promise<?Element>}
+ */
+ function mapToPopover(control)
+ {
+ return control.popoverElementPromise(x)
+ }
+
return Promise.all(promises).then(buildFragment);
/**
« no previous file with comments | « Source/devtools/front_end/ui/KeyboardShortcut.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698