Showing 1 changed files with 3 additions and 3 deletions
+3 -3
Nasal/softkeys.nas
... ...
@@ -10,9 +10,9 @@ var softkeysClass = {
10 10
 
11 11
     clean : func {
12 12
         # deletes unsed bindings
13
-        foreach (var b; me.bindings)
14
-            if (b != role)
15
-                delete(bindings, b);
13
+        foreach (var b; keys(me.bindings))
14
+            if (b != me.role)
15
+                delete(me.bindings, b);
16 16
     },
17 17
 
18 18
     SoftKey : func (n, a) {