mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 06:23:18 +00:00
Add hasCallbacks method
This commit is contained in:
@@ -31,6 +31,9 @@ define([
|
|||||||
},
|
},
|
||||||
'pushCallback': function (callback) {
|
'pushCallback': function (callback) {
|
||||||
callbackStack.push(callback);
|
callbackStack.push(callback);
|
||||||
|
},
|
||||||
|
'hasCallbacks' : function() {
|
||||||
|
return callbackStack.length > 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user