Index: pkg/html_import/lib/src/boot.js |
diff --git a/pkg/html_import/lib/src/boot.js b/pkg/html_import/lib/src/boot.js |
deleted file mode 100644 |
index 3ec48971bfbe3ddc13cda2461cde490fdfbace30..0000000000000000000000000000000000000000 |
--- a/pkg/html_import/lib/src/boot.js |
+++ /dev/null |
@@ -1,37 +0,0 @@ |
-/* |
- * 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(){ |
- |
-// bootstrap |
- |
-// IE shim for CustomEvent |
-if (typeof window.CustomEvent !== 'function') { |
- window.CustomEvent = function(inType) { |
- var e = document.createEvent('HTMLEvents'); |
- e.initEvent(inType, true, true); |
- return e; |
- }; |
-} |
- |
-function bootstrap() { |
- // preload document resource trees |
- HTMLImports.importer.load(document, function() { |
- HTMLImports.parser.parse(document); |
- HTMLImports.readyTime = new Date().getTime(); |
- // send HTMLImportsLoaded when finished |
- document.dispatchEvent( |
- new CustomEvent('HTMLImportsLoaded', {bubbles: true}) |
- ); |
- }); |
-}; |
- |
-if (document.readyState === 'complete') { |
- bootstrap(); |
-} else { |
- window.addEventListener('DOMContentLoaded', bootstrap); |
-} |
- |
-})(); |