1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-18 05:33:31 +01:00

Update hints on command change in :addons/:downloads.

This commit is contained in:
Kris Maglione
2011-02-19 22:16:29 -05:00
parent d37e8159ed
commit 624563523d
3 changed files with 12 additions and 2 deletions

View File

@@ -296,7 +296,7 @@ var EventHive = Class("EventHive", Contexts.Hive, {
*/
listen: function (target, event, callback, capture) {
if (isObject(event))
var [self, events] = [event, event[callback]];
var [self, events] = [event, event[callback || "events"]];
else
[self, events] = [null, array.toObject([[event, callback]])];