jellyfin-web/dashboard-ui/bower_components/jquery/test/promises_aplus_adapter.js
2016-01-12 14:55:45 -05:00

23 lines
415 B
JavaScript

/* jshint node: true */
"use strict";
require( "jsdom" ).env( "", function( errors, window ) {
if ( errors ) {
console.error( errors );
return;
}
var jQuery = require( ".." )( window );
exports.deferred = function() {
var deferred = jQuery.Deferred();
return {
promise: deferred.promise(),
resolve: deferred.resolve.bind( deferred ),
reject: deferred.reject.bind( deferred )
};
};
} );