fixed whenAvailable()

This commit is contained in:
Ivan Socolsky 2014-11-05 22:21:32 -03:00
commit b8a708c863
3 changed files with 14 additions and 9 deletions

View file

@ -89,7 +89,7 @@ RateService.prototype.isAvailable = function() {
};
RateService.prototype.whenAvailable = function(callback) {
if (!this.isAvailable()) {
if (this.isAvailable()) {
setTimeout(callback, 1);
} else {
this._queued.push(callback);