mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 04:34:38 +02:00
Code Review Fixes
This commit is contained in:
parent
35f662d767
commit
397fe2a534
1 changed files with 4 additions and 5 deletions
|
@ -44,7 +44,6 @@ function HifiNotification(notificationType, notificationData, menuNotificationCa
|
|||
|
||||
HifiNotification.prototype = {
|
||||
show: function (finished) {
|
||||
var _finished = finished;
|
||||
var text = "";
|
||||
var message = "";
|
||||
var url = null;
|
||||
|
@ -123,11 +122,11 @@ HifiNotification.prototype = {
|
|||
timeout: 5
|
||||
},
|
||||
function (error, reason, metadata) {
|
||||
if (_finished) {
|
||||
if (finished) {
|
||||
if (osType === 'Darwin') {
|
||||
setTimeout(_finished, OSX_CLICK_DELAY_TIMEOUT);
|
||||
setTimeout(finished, OSX_CLICK_DELAY_TIMEOUT);
|
||||
} else {
|
||||
_finished();
|
||||
finished();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -240,7 +239,7 @@ HifiNotifications.prototype = {
|
|||
},
|
||||
_addNotification: function (notification) {
|
||||
this.pendingNotifications.push(notification);
|
||||
if(this.pendingNotifications.length === 1) {
|
||||
if (this.pendingNotifications.length === 1) {
|
||||
this._showNotification();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue