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

Unified Diff: Source/devtools/front_end/sources/AsyncOperationsSidebarPane.js

Issue 943963002: DevTools: Refactor nits in DebuggerModel event dispatching. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 10 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/sdk/DebuggerModel.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/sources/AsyncOperationsSidebarPane.js
diff --git a/Source/devtools/front_end/sources/AsyncOperationsSidebarPane.js b/Source/devtools/front_end/sources/AsyncOperationsSidebarPane.js
index 5106b7ad981f50edd4bb7c43d63256e12eb3f442..d0b06da55566b6e1ae2da914238bf5624e6b2711 100644
--- a/Source/devtools/front_end/sources/AsyncOperationsSidebarPane.js
+++ b/Source/devtools/front_end/sources/AsyncOperationsSidebarPane.js
@@ -180,8 +180,8 @@ WebInspector.AsyncOperationsSidebarPane.prototype = {
*/
_onAsyncOperationStarted: function(event)
{
- var target = /** @type {!WebInspector.Target} */ (event.data.target);
- var operation = /** @type {!DebuggerAgent.AsyncOperation} */ (event.data.operation);
+ var target = /** @type {!WebInspector.Target} */ (event.target.target());
+ var operation = /** @type {!DebuggerAgent.AsyncOperation} */ (event.data);
var operationsMap = this._asyncOperationsByTarget.get(target);
if (!operationsMap) {
@@ -199,8 +199,8 @@ WebInspector.AsyncOperationsSidebarPane.prototype = {
*/
_onAsyncOperationCompleted: function(event)
{
- var target = /** @type {!WebInspector.Target} */ (event.data.target);
- var operationId = /** @type {number} */ (event.data.operationId);
+ var target = /** @type {!WebInspector.Target} */ (event.target.target());
+ var operationId = /** @type {number} */ (event.data);
var operationsMap = this._asyncOperationsByTarget.get(target);
if (operationsMap)
« no previous file with comments | « Source/devtools/front_end/sdk/DebuggerModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698