| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | |
| 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. | |
| 4 | |
| 5 /// Custom HTML tags, data binding, and templates for building | |
| 6 /// structured, encapsulated, client-side web apps. | |
| 7 /// | |
| 8 /// Polymer.dart, the next evolution of Web UI, | |
| 9 /// is an in-progress Dart port of the | |
| 10 /// [Polymer project](http://www.polymer-project.org/). | |
| 11 /// Polymer.dart compiles to JavaScript and runs across the modern web. | |
| 12 /// | |
| 13 /// To use polymer.dart in your application, | |
| 14 /// first add a | |
| 15 /// [dependency](http://pub.dartlang.org/doc/dependencies.html) | |
| 16 /// to the app's pubspec.yaml file. | |
| 17 /// Instead of using the open-ended `any` version specifier, | |
| 18 /// we recommend using a range of version numbers, as in this example: | |
| 19 /// | |
| 20 /// dependencies: | |
| 21 /// polymer: '>=0.7.1 <0.8' | |
| 22 /// | |
| 23 /// Then import the library into your application: | |
| 24 /// | |
| 25 /// import 'package:polymer/polymer.dart'; | |
| 26 /// | |
| 27 /// ## Other resources | |
| 28 /// | |
| 29 /// * [Polymer.dart homepage](http://www.dartlang.org/polymer-dart/): | |
| 30 /// Example code, project status, and | |
| 31 /// information about how to get started using Polymer.dart in your apps. | |
| 32 /// | |
| 33 /// * [polymer.dart package](http://pub.dartlang.org/packages/polymer): | |
| 34 /// More details, such as the current major release number. | |
| 35 /// | |
| 36 /// * [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 library polymer; | |
| 39 | |
| 40 import 'dart:async'; | |
| 41 import 'dart:collection'; | |
| 42 import 'dart:html'; | |
| 43 import 'dart:js' as js show context; | |
| 44 import 'dart:js' hide context; | |
| 45 | |
| 46 // *** Important Note *** | |
| 47 // This import is automatically replaced when calling pub build by the | |
| 48 // mirrors_remover transformer. The transformer will remove any dependencies on | |
| 49 // dart:mirrors in deployed polymer apps. This and the import to | |
| 50 // mirror_loader.dart below should be updated in sync with changed in | |
| 51 // lib/src/build/mirrors_remover.dart. | |
| 52 // | |
| 53 // Technically this annotation is not needed now that we have codegen for | |
| 54 // expressions, but our test bots don't run pub-build yet. Until then, tests | |
| 55 // might (transitively) have an import to smoke.mirrors, even though the code is | |
| 56 // completely dead. This @MirrorsUsed annotation helps reduce the load on our | |
| 57 // bots. | |
| 58 @MirrorsUsed(metaTargets: | |
| 59 const [Reflectable, ObservableProperty, PublishedProperty, CustomTag, | |
| 60 ObserveProperty], | |
| 61 targets: const [PublishedProperty, ObserveProperty], | |
| 62 override: const ['smoke.mirrors']) | |
| 63 import 'dart:mirrors' show MirrorsUsed; // ** see important note above | |
| 64 | |
| 65 import 'package:logging/logging.dart'; | |
| 66 import 'package:observe/observe.dart'; | |
| 67 import 'package:observe/src/dirty_check.dart' show dirtyCheckZone; | |
| 68 import 'package:polymer_expressions/polymer_expressions.dart' | |
| 69 as polymer_expressions; | |
| 70 import 'package:smoke/smoke.dart' as smoke; | |
| 71 import 'package:template_binding/template_binding.dart'; | |
| 72 | |
| 73 import 'auto_binding.dart'; | |
| 74 import 'deserialize.dart' as deserialize; | |
| 75 import 'src/mirror_loader.dart' as loader; // ** see important note above | |
| 76 | |
| 77 export 'package:observe/observe.dart'; | |
| 78 export 'package:observe/html.dart'; | |
| 79 export 'auto_binding.dart'; | |
| 80 | |
| 81 part 'src/declaration.dart'; | |
| 82 part 'src/events.dart'; | |
| 83 part 'src/instance.dart'; | |
| 84 part 'src/job.dart'; | |
| 85 part 'src/loader.dart'; | |
| 86 part 'src/property_accessor.dart'; | |
| OLD | NEW |