| Index: third_party/polymer/v1_0/components-chromium/polymer/polymer-mini-extracted.js
|
| diff --git a/third_party/polymer/v1_0/components-chromium/polymer/polymer-mini-extracted.js b/third_party/polymer/v1_0/components-chromium/polymer/polymer-mini-extracted.js
|
| index 013f5359315d78668f929b64ad9f93efffc435d0..174342455e87c6ae4fa9060434c522d65ba7d695 100644
|
| --- a/third_party/polymer/v1_0/components-chromium/polymer/polymer-mini-extracted.js
|
| +++ b/third_party/polymer/v1_0/components-chromium/polymer/polymer-mini-extracted.js
|
| @@ -19,8 +19,7 @@ instanceTemplate: function (template) {
|
| var dom = document.importNode(template._content || template.content, true);
|
| return dom;
|
| }
|
| -});
|
| -(function () {
|
| +});(function () {
|
| var baseAttachedCallback = Polymer.Base.attachedCallback;
|
| Polymer.Base._addFeature({
|
| _hostStack: [],
|
| @@ -96,8 +95,7 @@ this._attachedPending = true;
|
| }
|
| }
|
| });
|
| -}());
|
| -Polymer.ArraySplice = function () {
|
| +}());Polymer.ArraySplice = function () {
|
| function newSplice(index, removed, addedCount) {
|
| return {
|
| index: index,
|
| @@ -266,8 +264,7 @@ return currentValue === previousValue;
|
| }
|
| };
|
| return new ArraySplice();
|
| -}();
|
| -Polymer.domInnerHTML = function () {
|
| +}();Polymer.domInnerHTML = function () {
|
| var escapeAttrRegExp = /[&\u00A0"]/g;
|
| var escapeDataRegExp = /[&\u00A0<>]/g;
|
| function escapeReplace(c) {
|
| @@ -363,8 +360,7 @@ s += getOuterHTML(child, node, composed);
|
| return s;
|
| }
|
| return { getInnerHTML: getInnerHTML };
|
| -}();
|
| -(function () {
|
| +}();(function () {
|
| 'use strict';
|
| var nativeInsertBefore = Element.prototype.insertBefore;
|
| var nativeAppendChild = Element.prototype.appendChild;
|
| @@ -560,8 +556,7 @@ removeChild: function (parentNode, node) {
|
| return nativeRemoveChild.call(parentNode, node);
|
| }
|
| };
|
| -}());
|
| -Polymer.DomApi = function () {
|
| +}());Polymer.DomApi = function () {
|
| 'use strict';
|
| var Settings = Polymer.Settings;
|
| var TreeApi = Polymer.TreeApi;
|
| @@ -678,8 +673,7 @@ return DomApi.factory(obj, patch);
|
| var p = Element.prototype;
|
| DomApi.matchesSelector = p.matches || p.matchesSelector || p.mozMatchesSelector || p.msMatchesSelector || p.oMatchesSelector || p.webkitMatchesSelector;
|
| return DomApi;
|
| -}();
|
| -(function () {
|
| +}();(function () {
|
| 'use strict';
|
| var Settings = Polymer.Settings;
|
| var DomApi = Polymer.DomApi;
|
| @@ -1148,8 +1142,7 @@ configurable: true
|
| DomApi.hasInsertionPoint = function (root) {
|
| return Boolean(root && root._insertionPoints.length);
|
| };
|
| -}());
|
| -(function () {
|
| +}());(function () {
|
| 'use strict';
|
| var Settings = Polymer.Settings;
|
| var TreeApi = Polymer.TreeApi;
|
| @@ -1267,8 +1260,7 @@ forwardProperties([
|
| 'nextElementSibling',
|
| 'previousElementSibling'
|
| ]);
|
| -}());
|
| -Polymer.Base.extend(Polymer.dom, {
|
| +}());Polymer.Base.extend(Polymer.dom, {
|
| _flushGuard: 0,
|
| _FLUSH_MAX: 100,
|
| _needsTakeRecords: !Polymer.Settings.useNativeCustomElements,
|
| @@ -1316,8 +1308,7 @@ this._finishDebouncer = Polymer.Debounce(this._finishDebouncer, this._finishFlus
|
| _finishFlush: function () {
|
| Polymer.dom._debouncers = [];
|
| }
|
| -});
|
| -Polymer.EventApi = function () {
|
| +});Polymer.EventApi = function () {
|
| 'use strict';
|
| var DomApi = Polymer.DomApi.ctor;
|
| var Settings = Polymer.Settings;
|
| @@ -1385,8 +1376,7 @@ event.__eventApi = new DomApi.Event(event);
|
| return event.__eventApi;
|
| };
|
| return { factory: factory };
|
| -}();
|
| -(function () {
|
| +}();(function () {
|
| 'use strict';
|
| var DomApi = Polymer.DomApi.ctor;
|
| var useShadow = Polymer.Settings.useShadow;
|
| @@ -1425,8 +1415,7 @@ contains: function () {
|
| return this.node.classList.contains.apply(this.node.classList, arguments);
|
| }
|
| };
|
| -}());
|
| -(function () {
|
| +}());(function () {
|
| 'use strict';
|
| var DomApi = Polymer.DomApi.ctor;
|
| var Settings = Polymer.Settings;
|
| @@ -1626,8 +1615,7 @@ h._alwaysNotify = h._isContentListener;
|
| }
|
| });
|
| }
|
| -}());
|
| -(function () {
|
| +}());(function () {
|
| 'use strict';
|
| var DomApi = Polymer.DomApi.ctor;
|
| var Settings = Polymer.Settings;
|
| @@ -1678,8 +1666,7 @@ this._observer = null;
|
| }
|
| });
|
| }
|
| -}());
|
| -(function () {
|
| +}());(function () {
|
| var DomApi = Polymer.DomApi;
|
| var TreeApi = Polymer.TreeApi;
|
| Polymer.Base._addFeature({
|
| @@ -1986,8 +1973,7 @@ CustomElements.upgrade(children[i]);
|
| }
|
| }
|
| }
|
| -}());
|
| -if (Polymer.Settings.useShadow) {
|
| +}());if (Polymer.Settings.useShadow) {
|
| Polymer.Base._addFeature({
|
| _poolContent: function () {
|
| },
|
| @@ -2005,8 +1991,7 @@ this.shadowRoot.appendChild(this.root);
|
| this.root = this.shadowRoot;
|
| }
|
| });
|
| -}
|
| -Polymer.Async = {
|
| +}Polymer.Async = {
|
| _currVal: 0,
|
| _lastVal: 0,
|
| _callbacks: [],
|
| @@ -2056,8 +2041,7 @@ this._lastVal += len;
|
| };
|
| new window.MutationObserver(function () {
|
| Polymer.Async._atEndOfMicrotask();
|
| -}).observe(Polymer.Async._twiddle, { characterData: true });
|
| -Polymer.Debounce = function () {
|
| +}).observe(Polymer.Async._twiddle, { characterData: true });Polymer.Debounce = function () {
|
| var Async = Polymer.Async;
|
| var Debouncer = function (context) {
|
| this.context = context;
|
| @@ -2079,12 +2063,14 @@ stop: function () {
|
| if (this.finish) {
|
| this.finish();
|
| this.finish = null;
|
| +this.callback = null;
|
| }
|
| },
|
| complete: function () {
|
| if (this.finish) {
|
| +var callback = this.callback;
|
| this.stop();
|
| -this.callback.call(this.context);
|
| +callback.call(this.context);
|
| }
|
| }
|
| };
|
| @@ -2098,8 +2084,7 @@ debouncer.go(callback, wait);
|
| return debouncer;
|
| }
|
| return debounce;
|
| -}();
|
| -Polymer.Base._addFeature({
|
| +}();Polymer.Base._addFeature({
|
| _setupDebouncers: function () {
|
| this._debouncers = {};
|
| },
|
| @@ -2122,8 +2107,7 @@ if (debouncer) {
|
| debouncer.stop();
|
| }
|
| }
|
| -});
|
| -Polymer.DomModule = document.createElement('dom-module');
|
| +});Polymer.DomModule = document.createElement('dom-module');
|
| Polymer.Base._addFeature({
|
| _registerFeatures: function () {
|
| this._prepIs();
|
|
|