Add dependency for dependecies on sub getIRQueue

This commit is contained in:
Julian Viereck 2011-09-16 00:11:23 -07:00
parent 8f21f87fd9
commit 0f6bf30228
2 changed files with 23 additions and 4 deletions

View file

@ -149,6 +149,10 @@ var Promise = (function() {
},
then: function(callback) {
if (!callback) {
throw "Requiring callback" + this.name;
}
// If the promise is already resolved, call the callback directly.
if (this.isResolved) {
var data = this.data;