| Index: third_party/polymer/components-chromium/core-meta/core-meta-extracted.js
|
| diff --git a/third_party/polymer/components-chromium/core-meta/core-meta-extracted.js b/third_party/polymer/components-chromium/core-meta/core-meta-extracted.js
|
| deleted file mode 100644
|
| index c4e60a332ca65c8bb076e165d81818b800c350d0..0000000000000000000000000000000000000000
|
| --- a/third_party/polymer/components-chromium/core-meta/core-meta-extracted.js
|
| +++ /dev/null
|
| @@ -1,83 +0,0 @@
|
| -
|
| -
|
| - (function() {
|
| -
|
| - var SKIP_ID = 'meta';
|
| - var metaData = {}, metaArray = {};
|
| -
|
| - Polymer('core-meta', {
|
| -
|
| - /**
|
| - * The type of meta-data. All meta-data with the same type with be
|
| - * stored together.
|
| - *
|
| - * @attribute type
|
| - * @type string
|
| - * @default 'default'
|
| - */
|
| - type: 'default',
|
| -
|
| - alwaysPrepare: true,
|
| -
|
| - ready: function() {
|
| - this.register(this.id);
|
| - },
|
| -
|
| - get metaArray() {
|
| - var t = this.type;
|
| - if (!metaArray[t]) {
|
| - metaArray[t] = [];
|
| - }
|
| - return metaArray[t];
|
| - },
|
| -
|
| - get metaData() {
|
| - var t = this.type;
|
| - if (!metaData[t]) {
|
| - metaData[t] = {};
|
| - }
|
| - return metaData[t];
|
| - },
|
| -
|
| - register: function(id, old) {
|
| - if (id && id !== SKIP_ID) {
|
| - this.unregister(this, old);
|
| - this.metaData[id] = this;
|
| - this.metaArray.push(this);
|
| - }
|
| - },
|
| -
|
| - unregister: function(meta, id) {
|
| - delete this.metaData[id || meta.id];
|
| - var i = this.metaArray.indexOf(meta);
|
| - if (i >= 0) {
|
| - this.metaArray.splice(i, 1);
|
| - }
|
| - },
|
| -
|
| - /**
|
| - * Returns a list of all meta-data elements with the same type.
|
| - *
|
| - * @property list
|
| - * @type array
|
| - * @default []
|
| - */
|
| - get list() {
|
| - return this.metaArray;
|
| - },
|
| -
|
| - /**
|
| - * Retrieves meta-data by ID.
|
| - *
|
| - * @method byId
|
| - * @param {String} id The ID of the meta-data to be returned.
|
| - * @returns Returns meta-data.
|
| - */
|
| - byId: function(id) {
|
| - return this.metaData[id];
|
| - }
|
| -
|
| - });
|
| -
|
| - })();
|
| -
|
|
|