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

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

Issue 162093002: fix imports link rel=stylesheet (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/instance.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/loader.dart
diff --git a/pkg/polymer/lib/src/loader.dart b/pkg/polymer/lib/src/loader.dart
index 7a04ef1a272c64c48b8bfc4bdfda9a05d159b425..afe568465196b1a62a188e73249d0576f348b8fa 100644
--- a/pkg/polymer/lib/src/loader.dart
+++ b/pkg/polymer/lib/src/loader.dart
@@ -33,7 +33,9 @@ Zone initPolymer() {
// TODO(sigmund): fix polymer's transformers so they can replace initPolymer
// by initPolymerOptimized.
if (_initializers == null) _initializers = _discoverInitializers();
- if (_useDirtyChecking) {
+
+ // In deployment mode, we rely on change notifiers instead of dirty checking.
+ if (!_deployMode) {
return dirtyCheckZone()..run(initPolymerOptimized);
}
@@ -74,7 +76,7 @@ Zone initPolymerOptimized() {
*/
void configureForDeployment(List<Function> initializers) {
_initializers = initializers;
- _useDirtyChecking = false;
+ _deployMode = true;
}
/**
@@ -88,7 +90,8 @@ void configureForDeployment(List<Function> initializers) {
*/
List<Function> _initializers;
-bool _useDirtyChecking = true;
+/** True if we're in deployment mode. */
+bool _deployMode = false;
List<Function> _discoverInitializers() {
var initializers = [];
« no previous file with comments | « pkg/polymer/lib/src/instance.dart ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698