mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
21 lines
401 B
JavaScript
21 lines
401 B
JavaScript
"use strict";
|
|
|
|
require( "jsdom" ).env( "", function( errors, window ) {
|
|
if ( errors ) {
|
|
console.error( errors );
|
|
return;
|
|
}
|
|
|
|
var jQuery = require( "../../" )( window );
|
|
|
|
module.exports.deferred = function() {
|
|
var deferred = jQuery.Deferred();
|
|
|
|
return {
|
|
promise: deferred.promise(),
|
|
resolve: deferred.resolve.bind( deferred ),
|
|
reject: deferred.reject.bind( deferred )
|
|
};
|
|
};
|
|
} );
|