mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 12:04:12 +01:00
Make further use of default parameters.
--HG-- extra : rebase_source : ab666bce7ed7e47c8f1e2bc4145f553da990d319
This commit is contained in:
@@ -212,8 +212,7 @@ var Events = Module("events", {
|
||||
/**
|
||||
* Wraps an event listener to ensure that errors are reported.
|
||||
*/
|
||||
wrapListener: function wrapListener(method, self) {
|
||||
self = self || this;
|
||||
wrapListener: function wrapListener(method, self = this) {
|
||||
method.wrapper = wrappedListener;
|
||||
wrappedListener.wrapped = method;
|
||||
function wrappedListener(event) {
|
||||
|
||||
Reference in New Issue
Block a user