1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2015-07-16 19:55:16 -04:00
parent 3e1f88f0b9
commit 2776720c6f
26 changed files with 291 additions and 213 deletions

View file

@ -7,7 +7,7 @@
* 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
*/
// @version 0.7.6
// @version 0.7.7
if (typeof WeakMap === "undefined") {
(function() {
var defineProperty = Object.defineProperty;
@ -761,17 +761,23 @@ window.CustomElements.addModule(function(scope) {
var nativePrototype = HTMLElement.prototype;
if (definition.is) {
var inst = document.createElement(definition.tag);
var expectedPrototype = Object.getPrototypeOf(inst);
if (expectedPrototype === definition.prototype) {
nativePrototype = expectedPrototype;
}
nativePrototype = Object.getPrototypeOf(inst);
}
var proto = definition.prototype, ancestor;
while (proto && proto !== nativePrototype) {
var foundPrototype = false;
while (proto) {
if (proto == nativePrototype) {
foundPrototype = true;
}
ancestor = Object.getPrototypeOf(proto);
proto.__proto__ = ancestor;
if (ancestor) {
proto.__proto__ = ancestor;
}
proto = ancestor;
}
if (!foundPrototype) {
console.warn(definition.tag + " prototype not found in prototype chain for " + definition.is);
}
definition.native = nativePrototype;
}
}
@ -833,6 +839,9 @@ window.CustomElements.addModule(function(scope) {
var isInstance;
if (!Object.__proto__ && !useNative) {
isInstance = function(obj, ctor) {
if (obj instanceof ctor) {
return true;
}
var p = obj;
while (p) {
if (p === ctor.prototype) {