mirror of
https://github.com/Polymer/polymer.git
synced 2026-08-19 01:14:44 -05:00
41 lines
1.4 KiB
HTML
41 lines
1.4 KiB
HTML
<!--
|
|
@license
|
|
Copyright (c) 2014 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>
|
|
|
|
/**
|
|
* @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);
|
|
}
|
|
// 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.
|
|
*/
|
|
var goog = {
|
|
reflect: {
|
|
objectProperty(s, o) {
|
|
return s;
|
|
}
|
|
}
|
|
}
|
|
/* eslint-enable */
|
|
</script>
|