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

Unified Diff: Source/devtools/front_end/PowerProfiler.js

Issue 212503002: DevTools: Fix JSDoc and code landed in r169951. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Source/devtools/front_end/TimelinePowerOverview.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/PowerProfiler.js
diff --git a/Source/devtools/front_end/PowerProfiler.js b/Source/devtools/front_end/PowerProfiler.js
index bae2e99f53fd322029e0ac8a5e3a329bb5cca3fb..63ff51e45c553f110aa5545c3b140b7c45c2bd08 100644
--- a/Source/devtools/front_end/PowerProfiler.js
+++ b/Source/devtools/front_end/PowerProfiler.js
@@ -33,7 +33,7 @@ WebInspector.PowerProfiler.prototype = {
/**
* @constructor
- * @implements {WebInspector.PowerEventDispatcher}
+ * @implements {PowerAgent.Dispatcher}
*/
WebInspector.PowerDispatcher = function(profiler)
{
@@ -44,7 +44,7 @@ WebInspector.PowerDispatcher = function(profiler)
WebInspector.PowerDispatcher.prototype = {
dataAvailable: function(events)
{
- for (var i in events)
+ for (var i = 0; i < events.length; ++i)
this._profiler.dispatchEventToListeners(WebInspector.PowerProfiler.EventTypes.PowerEventRecorded, events[i]);
}
}
« no previous file with comments | « no previous file | Source/devtools/front_end/TimelinePowerOverview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698