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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/vmservice/observatory/deployed/web/packages/html_import/html_import.debug.js
diff --git a/runtime/bin/vmservice/observatory/deployed/web/packages/html_import/html_import.debug.js b/runtime/bin/vmservice/observatory/deployed/web/packages/html_import/html_import.debug.js
new file mode 100644
index 0000000000000000000000000000000000000000..08f6438e175f612c6faf739522ecac2411752e89
--- /dev/null
+++ b/runtime/bin/vmservice/observatory/deployed/web/packages/html_import/html_import.debug.js
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2013 The Polymer Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style
+ * license that can be found in the LICENSE file.
+ */
+
+(function() {
+
+var thisFile = 'html_import.debug.js';
+var scopeName = 'HTMLImports';
+var modules = [
+ 'src/Parser.js',
+ 'src/HTMLImports.js',
+ 'src/boot.js'
+];
+
+// export
+
+window[scopeName] = {
+ entryPointName: thisFile,
+ modules: modules
+};
+
+// bootstrap
+
+var script = document.querySelector('script[src*="' + thisFile + '"]');
+var src = script.attributes.src.value;
+var basePath = src.slice(0, src.indexOf(thisFile));
+
+if (!window.Loader) {
+ var path = basePath + 'tools/loader/loader.js';
+ document.write('<script src="' + path + '"></script>');
+}
+document.write('<script>Loader.load("' + scopeName + '")</script>');
+
+})();

Powered by Google App Engine
This is Rietveld 408576698