Skip to content

Commit

Permalink
Merge pull request #609 from aholachek/alerts-again
Browse files Browse the repository at this point in the history
subsequent site message displays dont have the settimeout, they still…
  • Loading branch information
aholachek committed Oct 2, 2015
2 parents 79f5efc + 27e57a8 commit d9a450e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/wraps/alerts_mediator.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ define([
activate: function(beehive, app) {
AlertsMediator.prototype.activate.apply(this, arguments);
var pubsub = this.getPubSub();
pubsub.subscribe(pubsub.APP_STARTED, _.bind(this.displaySiteMessage, this));
pubsub.subscribe(pubsub.ARIA_ANNOUNCEMENT, _.bind(this.displaySiteMessage, this));
pubsub.subscribe(pubsub.APP_STARTED, _.bind(this.displaySiteMessageWithDelay, this));
pubsub.subscribe(pubsub.ARIA_ANNOUNCEMENT, _.bind(this.checkAndDisplaySiteMessage, this));
},

onAlert: function(apiFeedback, psk) {
this._dirty = true;
AlertsMediator.prototype.onAlert.apply(this, arguments);
},

displaySiteMessage : function() {
displaySiteMessageWithDelay : function() {
var self = this;
setTimeout(function() {
self.checkAndDisplaySiteMessage();
}, 1000);
}, 500);
},

onDestroy: function() {
Expand Down

0 comments on commit d9a450e

Please sign in to comment.