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 #12072 from alivedise/bugzilla/914564/listmenu-clean
Browse files Browse the repository at this point in the history
Bug 914564 - Do not callback when screen is changed once menu is hidden. r=timdream
  • Loading branch information
alivedise committed Sep 11, 2013
2 parents bc795d7 + 64f4912 commit d3e6880
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/system/js/list_menu.js
Expand Up @@ -142,6 +142,9 @@ var ListMenu = {
handleEvent: function lm_handleEvent(evt) {
switch (evt.type) {
case 'screenchange':
if (!this.visible)
return;

if (!evt.detail.screenEnabled) {
this.hide();
this.oncancel();
Expand Down

0 comments on commit d3e6880

Please sign in to comment.