mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
First separation commit.
Added LICENSE, README.md, CONTRIBUTORS.md
This commit is contained in:
parent
09513af31b
commit
4678528d00
657 changed files with 422 additions and 0 deletions
12
src/bower_components/emby-webcomponents/polyfills/array.js
vendored
Normal file
12
src/bower_components/emby-webcomponents/polyfills/array.js
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
Array.prototype.filter || (Array.prototype.filter = function(fun) {
|
||||
"use strict";
|
||||
if (null == this) throw new TypeError;
|
||||
var t = Object(this),
|
||||
len = t.length >>> 0;
|
||||
if ("function" != typeof fun) throw new TypeError;
|
||||
for (var res = [], thisp = arguments[1], i = 0; i < len; i++)
|
||||
if (i in t) {
|
||||
var val = t[i];
|
||||
fun.call(thisp, val, i, t) && res.push(val)
|
||||
} return res
|
||||
});
|
10
src/bower_components/emby-webcomponents/polyfills/bind.js
vendored
Normal file
10
src/bower_components/emby-webcomponents/polyfills/bind.js
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
Function.prototype.bind || (Function.prototype.bind = function(oThis) {
|
||||
if ("function" != typeof this) throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
|
||||
var aArgs = Array.prototype.slice.call(arguments, 1),
|
||||
fToBind = this,
|
||||
fNOP = function() {},
|
||||
fBound = function() {
|
||||
return fToBind.apply(this instanceof fNOP ? this : oThis, aArgs.concat(Array.prototype.slice.call(arguments)))
|
||||
};
|
||||
return this.prototype && (fNOP.prototype = this.prototype), fBound.prototype = new fNOP, fBound
|
||||
});
|
12
src/bower_components/emby-webcomponents/polyfills/objectassign.js
vendored
Normal file
12
src/bower_components/emby-webcomponents/polyfills/objectassign.js
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
"function" != typeof Object.assign && function() {
|
||||
Object.assign = function(target) {
|
||||
"use strict";
|
||||
if (void 0 === target || null === target) throw new TypeError("Cannot convert undefined or null to object");
|
||||
for (var output = Object(target), index = 1; index < arguments.length; index++) {
|
||||
var source = arguments[index];
|
||||
if (void 0 !== source && null !== source)
|
||||
for (var nextKey in source) source.hasOwnProperty(nextKey) && (output[nextKey] = source[nextKey])
|
||||
}
|
||||
return output
|
||||
}
|
||||
}();
|
13
src/bower_components/emby-webcomponents/polyfills/raf.js
vendored
Normal file
13
src/bower_components/emby-webcomponents/polyfills/raf.js
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
! function() {
|
||||
for (var lastTime = 0, vendors = ["ms", "moz", "webkit", "o"], x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) window.requestAnimationFrame = window[vendors[x] + "RequestAnimationFrame"], window.cancelAnimationFrame = window[vendors[x] + "CancelAnimationFrame"] || window[vendors[x] + "CancelRequestAnimationFrame"];
|
||||
window.requestAnimationFrame || (window.requestAnimationFrame = function(callback, element) {
|
||||
var currTime = (new Date).getTime(),
|
||||
timeToCall = Math.max(0, 16 - (currTime - lastTime)),
|
||||
id = window.setTimeout(function() {
|
||||
callback(currTime + timeToCall)
|
||||
}, timeToCall);
|
||||
return lastTime = currTime + timeToCall, id
|
||||
}), window.cancelAnimationFrame || (window.cancelAnimationFrame = function(id) {
|
||||
clearTimeout(id)
|
||||
})
|
||||
}();
|
Loading…
Add table
Add a link
Reference in a new issue