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:
@@ -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]])];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user