Skip to content

Commit

Permalink
1.7b.rev1
Browse files Browse the repository at this point in the history
Landed fix to react-mozNotificationBar which was preventing new windows
from getting the updated state
  • Loading branch information
Noitidart committed Jan 28, 2016
1 parent 3dff970 commit e877519
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ var AB = { // AB stands for attention bar
// end - orig block link181888888
};

// have to do this, because if i call setState with a new object, one that is not AB.Insts[aId] then it wont get updated, and when loadInstancesIntoWindow it will not have the updated one
AB.Insts[aInstState.aId].state = aInstState;

var DOMWindows = Services.wm.getEnumerator(null);
while (DOMWindows.hasMoreElements()) {
var aDOMWindow = DOMWindows.getNext();
Expand Down

0 comments on commit e877519

Please sign in to comment.