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

Unified Diff: pkg/polymer/lib/src/build/linter.dart

Issue 46563002: Fix suggestions about using init.dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
Index: pkg/polymer/lib/src/build/linter.dart
diff --git a/pkg/polymer/lib/src/build/linter.dart b/pkg/polymer/lib/src/build/linter.dart
index 12271609f1910b2737b31bef2d45b2dd8bd8acba..3f5fe0d3848dd47211d1947198739ca1cb9fe656 100644
--- a/pkg/polymer/lib/src/build/linter.dart
+++ b/pkg/polymer/lib/src/build/linter.dart
@@ -544,7 +544,7 @@ const String _NO_COLOR = '\u001b[0m';
const String USE_INIT_DART =
'To run a polymer applications, you need to call "initPolymer". You can '
'either include a generic script tag that does this for you:'
- '\'<script type="application/dart" src="packages/polymer/init.dart">'
+ '\'<script type="application/dart">import "package:polymer/init.dart";'
'</script>\' or add your own script tag and call that function. '
'Make sure the script tag is placed after all HTML imports.';
@@ -556,7 +556,7 @@ const String BOOT_JS_DEPRECATED =
'"boot.js" is now deprecated. Instead, you can initialize your polymer '
'application by calling "initPolymer()" in your main. If you don\'t have a '
'main, then you can include our generic main by adding the following '
- 'script tag to your page: \'<script type="application/dart" '
- 'src="packages/polymer/init.dart"> </script>\'. Additionally you need to '
+ 'script tag to your page: \'<script type="application/dart">import '
+ '"package:polymer/init.dart";</script>\'. Additionally you need to '
'include: \'<script src="packages/browser/dart.js"></script>\' in the page '
'too. Make sure these script tags come after all HTML imports.';

Powered by Google App Engine
This is Rietveld 408576698