| 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 /// Custom HTML tags, data binding, and templates for building |
| 6 * Custom HTML tags, data binding, and templates for building | 6 /// structured, encapsulated, client-side web apps. |
| 7 * structured, encapsulated, client-side web apps. | 7 /// |
| 8 * | 8 /// Polymer.dart, the next evolution of Web UI, |
| 9 * Polymer.dart, the next evolution of Web UI, | 9 /// is an in-progress Dart port of the |
| 10 * is an in-progress Dart port of the | 10 /// [Polymer project](http://www.polymer-project.org/). |
| 11 * [Polymer project](http://www.polymer-project.org/). | 11 /// Polymer.dart compiles to JavaScript and runs across the modern web. |
| 12 * Polymer.dart compiles to JavaScript and runs across the modern web. | 12 /// |
| 13 * | 13 /// To use polymer.dart in your application, |
| 14 * To use polymer.dart in your application, | 14 /// first add a |
| 15 * first add a | 15 /// [dependency](http://pub.dartlang.org/doc/dependencies.html) |
| 16 * [dependency](http://pub.dartlang.org/doc/dependencies.html) | 16 /// to the app's pubspec.yaml file. |
| 17 * to the app's pubspec.yaml file. | 17 /// Instead of using the open-ended `any` version specifier, |
| 18 * Instead of using the open-ended `any` version specifier, | 18 /// we recommend using a range of version numbers, as in this example: |
| 19 * we recommend using a range of version numbers, as in this example: | 19 /// |
| 20 * | 20 /// dependencies: |
| 21 * dependencies: | 21 /// polymer: '>=0.7.1 <0.8' |
| 22 * polymer: '>=0.7.1 <0.8' | 22 /// |
| 23 * | 23 /// Then import the library into your application: |
| 24 * Then import the library into your application: | 24 /// |
| 25 * | 25 /// import 'package:polymer/polymer.dart'; |
| 26 * import 'package:polymer/polymer.dart'; | 26 /// |
| 27 * | 27 /// ## Other resources |
| 28 * ## Other resources | 28 /// |
| 29 * | 29 /// * [Polymer.dart homepage](http://www.dartlang.org/polymer-dart/): |
| 30 * * [Polymer.dart homepage](http://www.dartlang.org/polymer-dart/): | 30 /// Example code, project status, and |
| 31 * Example code, project status, and | 31 /// information about how to get started using Polymer.dart in your apps. |
| 32 * information about how to get started using Polymer.dart in your apps. | 32 /// |
| 33 * | 33 /// * [polymer.dart package](http://pub.dartlang.org/packages/polymer): |
| 34 * * [polymer.dart package](http://pub.dartlang.org/packages/polymer): | 34 /// More details, such as the current major release number. |
| 35 * More details, such as the current major release number. | 35 /// |
| 36 * | 36 /// * [Upgrading to Polymer.dart](http://www.dartlang.org/polymer-dart/upgrading
-to-polymer-from-web-ui.html): |
| 37 * * [Upgrading to Polymer.dart](http://www.dartlang.org/polymer-dart/upgrading-
to-polymer-from-web-ui.html): | 37 /// Tips for converting your apps from Web UI to Polymer.dart. |
| 38 * Tips for converting your apps from Web UI to Polymer.dart. | |
| 39 */ | |
| 40 library polymer; | 38 library polymer; |
| 41 | 39 |
| 42 import 'dart:async'; | 40 import 'dart:async'; |
| 43 import 'dart:collection' show HashMap, HashSet; | 41 import 'dart:collection' show HashMap, HashSet; |
| 44 import 'dart:html'; | 42 import 'dart:html'; |
| 45 import 'dart:js' as js; | 43 import 'dart:js' as js; |
| 46 | 44 |
| 47 @MirrorsUsed(metaTargets: | 45 @MirrorsUsed(metaTargets: |
| 48 const [Reflectable, ObservableProperty, CustomTag, _InitMethodAnnotation], | 46 const [Reflectable, ObservableProperty, CustomTag, _InitMethodAnnotation], |
| 49 override: const ['smoke.mirrors', 'polymer']) | 47 override: const ['smoke.mirrors', 'polymer']) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 63 import 'deserialize.dart' as deserialize; | 61 import 'deserialize.dart' as deserialize; |
| 64 | 62 |
| 65 export 'package:observe/observe.dart'; | 63 export 'package:observe/observe.dart'; |
| 66 export 'package:observe/html.dart'; | 64 export 'package:observe/html.dart'; |
| 67 | 65 |
| 68 part 'src/boot.dart'; | 66 part 'src/boot.dart'; |
| 69 part 'src/declaration.dart'; | 67 part 'src/declaration.dart'; |
| 70 part 'src/instance.dart'; | 68 part 'src/instance.dart'; |
| 71 part 'src/job.dart'; | 69 part 'src/job.dart'; |
| 72 part 'src/loader.dart'; | 70 part 'src/loader.dart'; |
| OLD | NEW |