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 2016-01-23 14:03:59 -05:00
parent 6ea653d815
commit 97286bc27a
33 changed files with 361 additions and 258 deletions

View file

@ -1,8 +1,8 @@
/*!
* howler.js v1.1.28
* howler.js v1.1.29
* howlerjs.com
*
* (c) 2013-2015, James Simpson of GoldFire Studios
* (c) 2013-2016, James Simpson of GoldFire Studios
* goldfirestudios.com
*
* MIT License
@ -139,7 +139,7 @@
/**
* Check for codec support.
* @param {String} ext Audio file extention.
* @param {String} ext Audio file extension.
* @return {Boolean}
*/
codecs: function(ext) {
@ -284,7 +284,7 @@
// if no audio is available, quit immediately
if (noAudio) {
self.on('loaderror');
self.on('loaderror', new Error('No audio support.'));
return;
}
@ -306,7 +306,7 @@
if (ext) {
ext = ext[1].toLowerCase();
} else {
self.on('loaderror');
self.on('loaderror', new Error('Could not extract format from passed URLs, please add format parameter.'));
return;
}
}
@ -318,7 +318,7 @@
}
if (!url) {
self.on('loaderror');
self.on('loaderror', new Error('No codec support for selected audio sources.'));
return;
}
@ -483,7 +483,7 @@
// fire ended event
self.on('end', soundId);
}, duration * 1000);
}, (duration / self._rate) * 1000);
// store the reference to the timer
self._onendTimer.push({timer: timerId, id: data.id});
@ -1060,7 +1060,7 @@
*/
_clearEndTimer: function(soundId) {
var self = this,
index = 0;
index = -1;
// loop through the timers to find the one associated with this sound
for (var i=0; i<self._onendTimer.length; i++) {
@ -1136,13 +1136,12 @@
*/
off: function(event, fn) {
var self = this,
events = self['_on' + event],
fnString = fn ? fn.toString() : null;
events = self['_on' + event];
if (fnString) {
if (fn) {
// loop through functions in the event for comparison
for (var i=0; i<events.length; i++) {
if (fnString === events[i].toString()) {
if (fn === events[i]) {
events.splice(i, 1);
break;
}
@ -1269,7 +1268,7 @@
}
},
function(err) {
obj.on('loaderror');
obj.on('loaderror', err);
}
);
};