Skip to content

Commit

Permalink
#353: fixed copy/paste mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed May 25, 2013
1 parent 96a123f commit 4a91308
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions hawtio-web/src/main/webapp/app/camel/js/debug.ts
Expand Up @@ -30,15 +30,15 @@ module Camel {
});

$scope.addBreakpoint = () => {
var mbean = getSelectionCamelTraceMBean(workspace);
var mbean = getSelectionCamelDebugMBean(workspace);
if (mbean && $scope.selectedDiagramNodeId) {
console.log("adding breakpoint on " + $scope.selectedDiagramNodeId);
jolokia.execute(mbean, "addBreakpoint", $scope.selectedDiagramNodeId, onSuccess(debuggingChanged));
}
};

$scope.removeBreakpoint = () => {
var mbean = getSelectionCamelTraceMBean(workspace);
var mbean = getSelectionCamelDebugMBean(workspace);
if (mbean && $scope.selectedDiagramNodeId) {
console.log("removing breakpoint on " + $scope.selectedDiagramNodeId);
jolokia.execute(mbean, "removeBreakpoint", $scope.selectedDiagramNodeId, onSuccess(debuggingChanged));
Expand Down Expand Up @@ -70,7 +70,7 @@ module Camel {
}

function setDebugging(flag:Boolean) {
var mbean = getSelectionCamelTraceMBean(workspace);
var mbean = getSelectionCamelDebugMBean(workspace);
if (mbean) {
var method = flag ? "enableDebugger" : "disableDebugger";
jolokia.execute(mbean, method, onSuccess(debuggingChanged));
Expand Down
1 change: 0 additions & 1 deletion hawtio-web/src/main/webapp/app/camel/js/helpers.ts
Expand Up @@ -550,7 +550,6 @@ module Camel {
if (tree && selection) {
var domain = selection.domain;
if (domain && contextId) {
// look for the Camel 2.11 mbean which we prefer
var result = tree.navigate(domain, contextId, "tracer");
if (result && result.children) {
var mbean = result.children.find(m => m.title.startsWith("BacklogDebugger"));
Expand Down

0 comments on commit 4a91308

Please sign in to comment.