Add hasCallbacks method

This commit is contained in:
Nicolas Le Goff
2014-02-28 15:26:53 +01:00
parent ba2a73d8c2
commit 5d3fd6f987

View File

@@ -31,6 +31,9 @@ define([
}, },
'pushCallback': function (callback) { 'pushCallback': function (callback) {
callbackStack.push(callback); callbackStack.push(callback);
},
'hasCallbacks' : function() {
return callbackStack.length > 0;
} }
} }
}); });