OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 library web_components.custom_element_proxy; | 4 library web_components.custom_element_proxy; |
5 | 5 |
6 import 'dart:js' as js; | 6 import 'dart:js' as js; |
7 import 'package:initialize/initialize.dart'; | 7 import 'package:initialize/initialize.dart'; |
8 import 'interop.dart'; | 8 import 'interop.dart'; |
9 | 9 |
10 /// Annotation for a dart class which proxies a javascript custom element. | 10 /// Annotation for a dart class which proxies a javascript custom element. |
(...skipping 19 matching lines...) Expand all Loading... |
30 class CustomElementProxyMixin { | 30 class CustomElementProxyMixin { |
31 js.JsObject _proxy; | 31 js.JsObject _proxy; |
32 | 32 |
33 js.JsObject get jsElement { | 33 js.JsObject get jsElement { |
34 if (_proxy == null) { | 34 if (_proxy == null) { |
35 _proxy = new js.JsObject.fromBrowserObject(this); | 35 _proxy = new js.JsObject.fromBrowserObject(this); |
36 } | 36 } |
37 return _proxy; | 37 return _proxy; |
38 } | 38 } |
39 } | 39 } |
OLD | NEW |