Index: Source/devtools/front_end/timeline/TimelineModelImpl.js |
diff --git a/Source/devtools/front_end/timeline/TimelineModelImpl.js b/Source/devtools/front_end/timeline/TimelineModelImpl.js |
index c7bcade488ca32e57f65902e046aa45ce03b3553..7be7679c2a2fc2ea282b2dd35966fa5d5b58f7ee 100644 |
--- a/Source/devtools/front_end/timeline/TimelineModelImpl.js |
+++ b/Source/devtools/front_end/timeline/TimelineModelImpl.js |
@@ -166,7 +166,6 @@ WebInspector.TimelineModelImpl.prototype = { |
if (cpuProfile) |
WebInspector.TimelineJSProfileProcessor.mergeJSProfileIntoTimeline(this, cpuProfile); |
this.dispatchEventToListeners(WebInspector.TimelineModel.Events.RecordingStopped); |
- this._currentTarget = null; |
}, |
/** |
@@ -263,6 +262,8 @@ WebInspector.TimelineModelImpl.prototype = { |
reset: function() |
{ |
+ if (!this._collectionEnabled) |
+ this._currentTarget = null; |
this._payloads = []; |
this._stringPool = {}; |
this._bindings._reset(); |