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

Side by Side Diff: runtime/bin/vmservice/observatory/deployed/web/packages/html_import/html_import.debug.js

Issue 839543002: Revert "Build Observatory with runtime" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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
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

Powered by Google App Engine
This is Rietveld 408576698