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

Side by Side Diff: pkg/html_import/lib/html_import.debug.js

Issue 158083002: introduce web_components pkg for consolidated polyfills (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/html_import/README.md ('k') | pkg/html_import/lib/html_import.min.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 The Polymer Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style
4 * license that can be found in the LICENSE file.
5 */
6
7 (function() {
8
9 var thisFile = 'html_import.debug.js';
10 var scopeName = 'HTMLImports';
11 var modules = [
12 'src/Parser.js',
13 'src/HTMLImports.js',
14 'src/boot.js'
15 ];
16
17 // export
18
19 window[scopeName] = {
20 entryPointName: thisFile,
21 modules: modules
22 };
23
24 // bootstrap
25
26 var script = document.querySelector('script[src*="' + thisFile + '"]');
27 var src = script.attributes.src.value;
28 var basePath = src.slice(0, src.indexOf(thisFile));
29
30 if (!window.Loader) {
31 var path = basePath + 'tools/loader/loader.js';
32 document.write('<script src="' + path + '"></script>');
33 }
34 document.write('<script>Loader.load("' + scopeName + '")</script>');
35
36 })();
OLDNEW
« no previous file with comments | « pkg/html_import/README.md ('k') | pkg/html_import/lib/html_import.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698