mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 23:35:44 +01:00
Promisify some callbackish functions, and remove spaces around = in default arguments, per Python conventions.
This commit is contained in:
@@ -212,7 +212,7 @@ var Events = Module("events", {
|
||||
/**
|
||||
* Wraps an event listener to ensure that errors are reported.
|
||||
*/
|
||||
wrapListener: function wrapListener(method, self = this) {
|
||||
wrapListener: function wrapListener(method, self=this) {
|
||||
method.wrapper = wrappedListener;
|
||||
wrappedListener.wrapped = method;
|
||||
function wrappedListener(event) {
|
||||
|
||||
Reference in New Issue
Block a user