| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 | 4 |
| 5 /** | 5 /** |
| 6 * This library exports all of the commonly used functions and types for | 6 * This library exports all of the commonly used functions and types for |
| 7 * building UI's. | 7 * building UI's. |
| 8 * | 8 * |
| 9 * See this article for more information: | 9 * See this article for more information: |
| 10 * <http://www.dartlang.org/articles/dart-web-components/>. | 10 * <http://www.dartlang.org/articles/dart-web-components/>. |
| 11 */ | 11 */ |
| 12 library polymer; | 12 library polymer; |
| 13 | 13 |
| 14 import 'dart:async'; | 14 import 'dart:async'; |
| 15 import 'dart:mirrors'; | 15 import 'dart:mirrors'; |
| 16 | 16 |
| 17 import 'package:mdv/mdv.dart' as mdv; | 17 import 'package:mdv/mdv.dart' as mdv; |
| 18 import 'package:observe/src/microtask.dart'; | 18 import 'package:observe/src/microtask.dart'; |
| 19 import 'package:path/path.dart' as path; | 19 import 'package:path/path.dart' as path; |
| 20 import 'polymer_element.dart' show registerPolymerElement; | 20 import 'polymer_element.dart' show registerPolymerElement; |
| 21 | 21 |
| 22 export 'package:custom_element/custom_element.dart'; | 22 export 'package:custom_element/custom_element.dart'; |
| 23 export 'package:observe/observe.dart'; | 23 export 'package:observe/observe.dart'; |
| 24 export 'package:observe/observe_html.dart'; |
| 24 export 'package:observe/src/microtask.dart'; | 25 export 'package:observe/src/microtask.dart'; |
| 25 | 26 |
| 26 export 'observe.dart'; | |
| 27 export 'observe_html.dart'; | |
| 28 export 'polymer_element.dart'; | 27 export 'polymer_element.dart'; |
| 29 export 'safe_html.dart'; | 28 export 'safe_html.dart'; |
| 30 | 29 |
| 31 | 30 |
| 32 /** Annotation used to automatically register polymer elements. */ | 31 /** Annotation used to automatically register polymer elements. */ |
| 33 class CustomTag { | 32 class CustomTag { |
| 34 final String tagName; | 33 final String tagName; |
| 35 const CustomTag(this.tagName); | 34 const CustomTag(this.tagName); |
| 36 } | 35 } |
| 37 | 36 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 print("warning: methods marked with @initMethod should take no " | 139 print("warning: methods marked with @initMethod should take no " |
| 141 "arguments, ${method.simpleName} expects some."); | 140 "arguments, ${method.simpleName} expects some."); |
| 142 return; | 141 return; |
| 143 } | 142 } |
| 144 obj.invoke(method.simpleName, const []); | 143 obj.invoke(method.simpleName, const []); |
| 145 } | 144 } |
| 146 | 145 |
| 147 class _InitMethodAnnotation { | 146 class _InitMethodAnnotation { |
| 148 const _InitMethodAnnotation(); | 147 const _InitMethodAnnotation(); |
| 149 } | 148 } |
| OLD | NEW |