Chromium Code Reviews| Index: Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.js |
| diff --git a/Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.js b/Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.js |
| index e9ad6c6b0b48b26172119691adfc46b2762d05b2..6d42d405aa3ad43a34c5b44a70c72adb643e5d01 100644 |
| --- a/Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.js |
| +++ b/Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.js |
| @@ -28,12 +28,13 @@ WebInspector.ObjectEventListenersSidebarPane.prototype = { |
| this._lastRequestedContext.target().runtimeAgent().releaseObjectGroup(WebInspector.ObjectEventListenersSidebarPane._objectGroupName); |
| delete this._lastRequestedContext; |
| } |
| - this._eventListenersView.reset(); |
| var executionContext = WebInspector.context.flavor(WebInspector.ExecutionContext); |
| - if (!executionContext) |
| + if (!executionContext) { |
| + this._eventListenersView.reset(); |
|
lushnikov
2015/06/17 14:44:50
addEmptyHolderIfNeeded
kozy
2015/06/17 15:54:32
Done.
|
| return; |
| + } |
| this._lastRequestedContext = executionContext; |
| - this._windowObjectInContext(executionContext).then(this._eventListenersView.addObjectEventListeners.bind(this._eventListenersView)); |
| + Promise.all([this._windowObjectInContext(executionContext)]).then(this._eventListenersView.addObjects.bind(this._eventListenersView)); |
| }, |
| expand: function() |
| @@ -49,7 +50,6 @@ WebInspector.ObjectEventListenersSidebarPane.prototype = { |
| _windowObjectInContext: function(executionContext) |
| { |
| return new Promise(windowObjectInContext); |
| - |
| /** |
| * @param {function(?)} fulfill |
| * @param {function(*)} reject |