underscore.deferred
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,2 +0,2 @@ | ||
(function(root, module){ | ||
(function(root){ | ||
@@ -398,3 +398,3 @@ // Let's borrow a couple of things from Underscore that we'll need | ||
for ( ; i < length; i++ ) { | ||
if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) { | ||
if ( args[ i ] && args[ i ].promise && _isFunction( args[ i ].promise ) ) { | ||
args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) ); | ||
@@ -427,2 +427,2 @@ } else { | ||
})(this, module); | ||
})(this); |
@@ -5,3 +5,3 @@ { | ||
"description": "Underscore style Deferreds", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/wookiehangover/underscore.Deferred", | ||
@@ -24,4 +24,4 @@ "repository": { | ||
"scripts": { | ||
"test": "node build test" | ||
"test": "mocha -u qunit" | ||
} | ||
} |
# Underscore.Deferred | ||
v0.1.1 | ||
v0.1.2 | ||
@@ -11,5 +11,5 @@ This is a port of jQuery.Deferred as an Underscore mixin, but it can be | ||
* @rwldrn | ||
* @tbranyen | ||
* @taxillian | ||
* [rwldrn](https://github.com/rwldrn) | ||
* [tbranyen](https://github.com/tbranyen) | ||
* [taxillian](https://github.com/taxilian) | ||
@@ -16,0 +16,0 @@ ## Deferred's are great, let's take them everywhere |
@@ -1,3 +0,20 @@ | ||
module("deferred" ); | ||
if( typeof module !== "undefined" && module.exports ){ | ||
var | ||
_ = require('underscore'), | ||
assert = require('assert'), | ||
ok = assert.ok, | ||
equal = assert.equal, | ||
expect = function(){}, | ||
deepEqual = assert.deepEqual, | ||
strictEqual = assert.strictEqual, | ||
notStrictEqual = assert.notStrictEqual; | ||
_.mixin( require('../lib/underscore.deferred') ); | ||
} | ||
test("its should be part of Underscore", function() { | ||
ok( _.VERSION ); | ||
equal( typeof _.Deferred, 'function' ); | ||
}); | ||
_.each( [ "", " - new operator" ], function( withNew ) { | ||
@@ -4,0 +21,0 @@ |
Sorry, the diff of this file is not supported yet
76149
2308
11