update components
This commit is contained in:
parent
6dae843884
commit
1bd4890f44
20 changed files with 429 additions and 204 deletions
|
@ -31,8 +31,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: [],
|
||||
|
@ -108,8 +107,7 @@ this._attachedPending = true;
|
|||
}
|
||||
}
|
||||
});
|
||||
}());
|
||||
Polymer.ArraySplice = function () {
|
||||
}());Polymer.ArraySplice = function () {
|
||||
function newSplice(index, removed, addedCount) {
|
||||
return {
|
||||
index: index,
|
||||
|
@ -278,8 +276,7 @@ return currentValue === previousValue;
|
|||
}
|
||||
};
|
||||
return new ArraySplice();
|
||||
}();
|
||||
Polymer.domInnerHTML = function () {
|
||||
}();Polymer.domInnerHTML = function () {
|
||||
var escapeAttrRegExp = /[&\u00A0"]/g;
|
||||
var escapeDataRegExp = /[&\u00A0<>]/g;
|
||||
function escapeReplace(c) {
|
||||
|
@ -375,8 +372,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;
|
||||
|
@ -572,8 +568,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;
|
||||
|
@ -690,8 +685,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;
|
||||
|
@ -1160,8 +1154,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;
|
||||
|
@ -1279,8 +1272,7 @@ forwardProperties([
|
|||
'nextElementSibling',
|
||||
'previousElementSibling'
|
||||
]);
|
||||
}());
|
||||
Polymer.Base.extend(Polymer.dom, {
|
||||
}());Polymer.Base.extend(Polymer.dom, {
|
||||
_flushGuard: 0,
|
||||
_FLUSH_MAX: 100,
|
||||
_needsTakeRecords: !Polymer.Settings.useNativeCustomElements,
|
||||
|
@ -1328,8 +1320,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;
|
||||
|
@ -1397,8 +1388,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;
|
||||
|
@ -1437,8 +1427,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;
|
||||
|
@ -1638,8 +1627,7 @@ h._alwaysNotify = h._isContentListener;
|
|||
}
|
||||
});
|
||||
}
|
||||
}());
|
||||
(function () {
|
||||
}());(function () {
|
||||
'use strict';
|
||||
var DomApi = Polymer.DomApi.ctor;
|
||||
var Settings = Polymer.Settings;
|
||||
|
@ -1690,8 +1678,7 @@ this._observer = null;
|
|||
}
|
||||
});
|
||||
}
|
||||
}());
|
||||
(function () {
|
||||
}());(function () {
|
||||
var DomApi = Polymer.DomApi;
|
||||
var TreeApi = Polymer.TreeApi;
|
||||
Polymer.Base._addFeature({
|
||||
|
@ -1998,8 +1985,7 @@ CustomElements.upgrade(children[i]);
|
|||
}
|
||||
}
|
||||
}
|
||||
}());
|
||||
if (Polymer.Settings.useShadow) {
|
||||
}());if (Polymer.Settings.useShadow) {
|
||||
Polymer.Base._addFeature({
|
||||
_poolContent: function () {
|
||||
},
|
||||
|
@ -2017,8 +2003,7 @@ this.shadowRoot.appendChild(this.root);
|
|||
this.root = this.shadowRoot;
|
||||
}
|
||||
});
|
||||
}
|
||||
Polymer.Async = {
|
||||
}Polymer.Async = {
|
||||
_currVal: 0,
|
||||
_lastVal: 0,
|
||||
_callbacks: [],
|
||||
|
@ -2068,8 +2053,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;
|
||||
|
@ -2091,12 +2075,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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -2110,8 +2096,7 @@ debouncer.go(callback, wait);
|
|||
return debouncer;
|
||||
}
|
||||
return debounce;
|
||||
}();
|
||||
Polymer.Base._addFeature({
|
||||
}();Polymer.Base._addFeature({
|
||||
_setupDebouncers: function () {
|
||||
this._debouncers = {};
|
||||
},
|
||||
|
@ -2134,8 +2119,7 @@ if (debouncer) {
|
|||
debouncer.stop();
|
||||
}
|
||||
}
|
||||
});
|
||||
Polymer.DomModule = document.createElement('dom-module');
|
||||
});Polymer.DomModule = document.createElement('dom-module');
|
||||
Polymer.Base._addFeature({
|
||||
_registerFeatures: function () {
|
||||
this._prepIs();
|
||||
|
@ -2163,4 +2147,18 @@ this._tryReady();
|
|||
},
|
||||
_marshalBehavior: function (b) {
|
||||
}
|
||||
});</script>
|
||||
});</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue