fixed whenAvailable()
This commit is contained in:
parent
015af22638
commit
b8a708c863
3 changed files with 14 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue