blob: 5119a7e35686e5875c7a4b2781a1de7cff6cfd90 [file] [log] [blame]
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library function_view_element;
import 'isolate_element.dart';
import 'package:logging/logging.dart';
import 'package:polymer/polymer.dart';
@CustomTag('function-view')
class FunctionViewElement extends IsolateElement {
@published Map function;
FunctionViewElement.created() : super.created();
void refresh(var done) {
isolate.getMap(function['id']).then((map) {
function = map;
}).catchError((e, trace) {
Logger.root.severe('Error while refreshing field-view: $e\n$trace');
}).whenComplete(done);
}
}