szurubooru/public_html/media/js/core.js

17 lines
327 B
JavaScript
Raw Normal View History

2013-10-09 00:58:49 +02:00
if ($.when.all === undefined)
{
$.when.all = function(deferreds)
{
var deferred = new $.Deferred();
$.when.apply($, deferreds).then(function()
{
deferred.resolve(Array.prototype.slice.call(arguments, 0));
}, function()
{
deferred.fail(Array.prototype.slice.call(arguments, 0));
});
return deferred;
}
}