Threads displayed.

This commit is contained in:
Ben Vanik 2013-12-25 17:31:53 -08:00
parent d368e0cb74
commit a1da55a006
19 changed files with 468 additions and 131 deletions

View file

@ -21,17 +21,15 @@ module.controller('FunctionViewController', function(
$scope.highlightInfo = null;
function refresh() {
if (!app.session || !app.session.dataSource) {
if (!app.session) {
$scope.fn = null;
return;
}
var dataSource = app.session.dataSource;
dataSource.getFunction($scope.functionAddress).then(function(fn) {
app.session.state.fetchFunction($scope.functionAddress).then(function(fn) {
$scope.fn = fn;
updateCode();
}, function(e) {
log.error('Unable to fetch function');
log.error('Unable to fetch function.');
});
};
$rootScope.$on('refresh', refresh);