| Index: pkg/polymer/lib/boot.js
|
| diff --git a/pkg/polymer/lib/boot.js b/pkg/polymer/lib/boot.js
|
| index 2bcb5902bd085fb5cd76725f2780d10b71b63439..9b1eef8a94c768e9dda7557d235457a5b3b0c6ff 100644
|
| --- a/pkg/polymer/lib/boot.js
|
| +++ b/pkg/polymer/lib/boot.js
|
| @@ -57,6 +57,16 @@
|
| return;
|
| }
|
|
|
| + // Detect if dart.js was included in the page. We use DOMContentLoaded to make
|
| + // sure we also check for occurrences after the current tag.
|
| + window.addEventListener('DOMContentLoaded', function () {
|
| + var dartJSQuery = 'script[src="packages/browser/dart.js"]';
|
| + if (!!document.querySelector(dartJSQuery)) {
|
| + console.error('Error: found "packages/browser/dart.js" in the ' +
|
| + 'page. Please remove it. When using polymer\'s "boot.js", ' +
|
| + 'you can\'t use "dart.js".');
|
| + }
|
| + });
|
|
|
| // Load HTML Imports:
|
| var htmlImportsSrc = 'src="packages/html_import/html_import.min.js"';
|
|
|