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

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

Issue 1191383002: DevTools: properly reset ignoreExecutionLine flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | 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/JavaScriptSourceFrame.js
diff --git a/Source/devtools/front_end/sources/JavaScriptSourceFrame.js b/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
index 12d4c4514133c71a3c7cac06ef9382ee120ff059..6c0bacdb7442dacf3d5c8388e5e46b8bd3f3021c 100644
--- a/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
+++ b/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
@@ -360,20 +360,21 @@ WebInspector.JavaScriptSourceFrame.prototype = {
*/
function liveEditCallback(error, errorData, script)
{
+ this._scriptsPanel.setIgnoreExecutionLineEvents(false);
if (error) {
liveEditError = error;
liveEditErrorData = errorData;
contextScript = script;
- failedEdits++;
- } else
- succeededEdits++;
+ ++failedEdits;
+ } else {
+ ++succeededEdits;
+ }
if (succeededEdits + failedEdits !== scriptFiles.length)
return;
if (failedEdits)
logLiveEditError.call(this, liveEditError, liveEditErrorData, contextScript);
- this._scriptsPanel.setIgnoreExecutionLineEvents(false);
}
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698