From 29fcfa0eb25fa73c887fa5115134a4ea2ec7cadb Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Wed, 16 Oct 2013 14:59:20 -0700 Subject: [PATCH] Add build manifest and PolymerLoader - Depends on WeakMap --- build.json | 4 ++++ mutation-observers.js | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 build.json create mode 100644 mutation-observers.js diff --git a/build.json b/build.json new file mode 100644 index 0000000..baea3cd --- /dev/null +++ b/build.json @@ -0,0 +1,4 @@ +[ + "../WeakMap/weakmap.js", + "MutationObserver.js" +] diff --git a/mutation-observers.js b/mutation-observers.js new file mode 100644 index 0000000..6426427 --- /dev/null +++ b/mutation-observers.js @@ -0,0 +1,35 @@ +/* + * 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 = 'mutation-observers.js'; +var scopeName = 'MutationObservers'; +var modules = [ + '../WeakMap/weakmap.js', + 'MutationObserver.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.PolymerLoader) { + var path = basePath + '../tools/loader/loader.js'; + document.write(''); +} +document.write(''); + +})();