Skip to content

Commit 6d900fb

Browse files
committed
E_showMenu_Q3: remove scroller as cb func argument
This removes a potential for memory leaks and should otherwise have no impact. As no app on the main BangleApps repo seems to use the option. See espruino#2567.
1 parent 133933b commit 6d900fb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

libs/js/banglejs/E_showMenu_Q3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
if (idx<0) return back&&back(); // title
138138
var item = menu[keys[idx]];
139139
Bangle.buzz(20);
140-
if ("function" == typeof item) item(l);
140+
if ("function" == typeof item) item();
141141
else if ("object" == typeof item) {
142142
// if a bool, just toggle it
143143
if ("number" == typeof item.value) {

libs/js/banglejs/E_showMenu_Q3.min.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)