Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: pkg/polymer/lib/src/static_loader.dart

Issue 293023008: Bring back initPolymer, allow boot.js only if using "polymer_experimental.html". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/lib/src/mirror_loader.dart ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/static_loader.dart
diff --git a/pkg/polymer/lib/src/static_loader.dart b/pkg/polymer/lib/src/static_loader.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7c248aa45971c7e2a908dce5f4a3a988ca8742af
--- /dev/null
+++ b/pkg/polymer/lib/src/static_loader.dart
@@ -0,0 +1,19 @@
+// Copyright (c) 2014, 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.
+
+/// Alternative implementation for loading initializers that avoids using
+/// mirrors. Unlike `mirror_loader` this is used for deployed applications to
+/// avoid any dependence on the mirror system.
+library polymer.src.static_loader;
+
+/// Set of initializers that are invoked by `initPolymer`. This is initialized
+/// with code automatically generated by the polymer transformers. The
+/// initialization code is injected in the entrypoint of the application.
+List<Function> initializers;
+
+/// True if we're in deployment mode.
+// TODO(sigmund): make this a const and remove the assignment in
+// configureForDevelopment when our testing infrastructure supports calling pub
+// build.
+bool deployMode = true;
« no previous file with comments | « pkg/polymer/lib/src/mirror_loader.dart ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698