Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #20999 from KevinGrandon/land_bug_1027271
Browse files Browse the repository at this point in the history
Bug 1027271 - [Rocketbar] banner becomes transparent occasionally when transitioning to browser
  • Loading branch information
vingtetun authored and rvandermeulen committed Jun 26, 2014
1 parent 4d1e07b commit a88ad12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/system/js/statusbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ var StatusBar = {
window.addEventListener('unlock', this);
window.addEventListener('lockpanelchange', this);

window.addEventListener('appopening', this);
window.addEventListener('appopened', this);
window.addEventListener('homescreenopened', this.show.bind(this));

// We need to preventDefault on mouse events until
Expand All @@ -268,7 +268,7 @@ var StatusBar = {

handleEvent: function sb_handleEvent(evt) {
switch (evt.type) {
case 'appopening':
case 'appopened':
var app = evt.detail;
if (app.isFullScreen()) {
this.hide();
Expand Down
4 changes: 2 additions & 2 deletions apps/system/test/unit/statusbar_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ suite('system/Statusbar', function() {
this.sinon.stub(app, 'isFullScreen').returns(true);
StatusBar.show();

var evt = new CustomEvent('appopening', { detail: app });
var evt = new CustomEvent('appopened', { detail: app });
StatusBar.handleEvent(evt);

assert.isTrue(StatusBar.element.classList.contains('invisible'));
Expand All @@ -1362,7 +1362,7 @@ suite('system/Statusbar', function() {
this.sinon.stub(app, 'isFullScreen').returns(false);
StatusBar.show();

var evt = new CustomEvent('appopening', { detail: app });
var evt = new CustomEvent('appopened', { detail: app });
StatusBar.handleEvent(evt);

assert.isFalse(StatusBar.element.classList.contains('invisible'));
Expand Down

0 comments on commit a88ad12

Please sign in to comment.