| OLD | NEW |
| (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 })(); | |
| OLD | NEW |