Skip to content

Commit

Permalink
Merge pull request #477 from ajaxorg/issues/464
Browse files Browse the repository at this point in the history
Issues/464
  • Loading branch information
sergi committed Nov 22, 2011
2 parents d021247 + 56c477e commit 866f97a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions client/ext/debugger/debugger.js
Expand Up @@ -179,8 +179,8 @@ module.exports = ext.register("ext/debugger/debugger", {
_self.$syncTree();
});
mdlDbgSources.addEventListener("update", function(e) {
if (e.action != "add")
return;
if (e.action !== "add") return;

// TODO: optimize this!
_self.$syncTree();
});
Expand Down Expand Up @@ -252,6 +252,16 @@ module.exports = ext.register("ext/debugger/debugger", {
//console.log("v8 updated", e);
});
});

// we're subsribing to the 'running active' prop
// this property indicates whether the debugger is actually running (when on a break this value is false)
stRunning.addEventListener("prop.active", function (e) {
// if we are really running (so not on a break or something)
if (e.value) {
// we clear out mdlDbgStack
mdlDbgStack.load("<frames></frames>");
}
});
},

showDebugFile : function(scriptId, row, column, text) {
Expand Down

0 comments on commit 866f97a

Please sign in to comment.