... | ... |
@@ -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) { |