Skip to content

Commit

Permalink
Remove some cruft and speed up the graph rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
gashcrumb committed Oct 8, 2013
1 parent b9b979a commit 23c3bbf
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions hawtio-web/src/main/webapp/app/ui/js/jsPlumbDirective.ts
Expand Up @@ -122,34 +122,7 @@ module UI {
});

Core.$apply($scope);
}, 50);


};
}

export class JSPlumbConnection {
public restrict = 'A';

public link = ($scope, $element, $attrs) => {
if (!angular.isDefined($scope.jsPlumb)) {
return;
}

console.log("here!");

var targets = $attrs['connectTo'].split(',');

angular.forEach(targets, (target) => {

var targetEl = $element.parent().find(target);

$scope.jsPlumb.connect({
source: $element,
target: targetEl
});
});

}, 10);
};
}
}

0 comments on commit 23c3bbf

Please sign in to comment.