Files
polymer/lib/utils/boot.html
2017-03-03 16:54:36 -08:00

53 lines
1.6 KiB
HTML

<!--
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<script>
(function() {
'use strict';
const userPolymer = window.Polymer;
/**
* @namespace Polymer
* @summary Polymer is a lightweight library built on top of the web
* standards-based Web Components API's, and makes it easy to build your
* own custom HTML elements.
*/
window.Polymer = function(info) {
return window.Polymer._polymerFn(info);
}
// support user settings on the Polymer object
if (userPolymer) {
Object.assign(Polymer, userPolymer);
}
// To be plugged by legacy implementation if loaded
window.Polymer._polymerFn = function() {
throw new Error('Load polymer.html to use the Polymer() function.');
}
window.Polymer.version = '2.0-preview';
/* eslint-disable no-unused-vars */
/*
When using Closure Compiler, goog.reflect.objectProperty(property, object) is replaced by the munged name for object[property]
We cannot alias this function, so we have to use a small shim that has the same behavior when not compiling.
*/
window.goog = {
reflect: {
objectProperty(s, o) {
return s;
}
}
}
/* eslint-enable */
})();
</script>