Skip to content

Commit

Permalink
replace menu on update in zero footprint mode (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
e9gille authored May 4, 2021
1 parent 7aaa9e6 commit e1999db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ D.installMenu = function Menu(mx) {
}
return !1;
};
$m = $('<div class=menu>').prependTo('body').empty()
$m = $('div[class=menu]');
$m.length || ($m = $('<div class=menu>').prependTo('body'));
$m.empty()
.addClass('menu')
.append(arg.map(render));
$m.find('>.m-sub>.m-opener').addClass('m-top');
Expand Down

0 comments on commit e1999db

Please sign in to comment.