... | ... |
@@ -42,8 +42,9 @@ var softkeysClass = { |
42 | 42 |
|
43 | 43 |
if (contains(path, key)) { |
44 | 44 |
append(me.path, key); |
45 |
- if (contains(bindings[key], 'hook')) |
|
46 |
- call(bindings[key].hook, [], me); |
|
45 |
+ if (contains(bindings, key)) |
|
46 |
+ if (contains(bindings[key], 'hook')) |
|
47 |
+ call(bindings[key].hook, [], me); |
|
47 | 48 |
me.device.display.updateSoftKeys(); |
48 | 49 |
} |
49 | 50 |
elsif (contains(bindings, key)) { |