mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-30 07:12:27 +01:00
Replace expression closures (function expressions - named and dynamic this).
Expression closures are to be axed. See https://bugzil.la/1083458. Leaving deprecated() and literal() calls and method shorthand syntax conversions until after the ESR overlap.
This commit is contained in:
@@ -47,10 +47,12 @@ var Marks = Module("marks", {
|
||||
params.offset = buffer.scrollPosition;
|
||||
params.path = DOM(buffer.findScrollable(0, false)).xpath;
|
||||
params.timestamp = Date.now() * 1000;
|
||||
params.equals = function (m) this.location == m.location
|
||||
&& this.offset.x == m.offset.x
|
||||
&& this.offset.y == m.offset.y
|
||||
&& this.path == m.path;
|
||||
params.equals = function (m) {
|
||||
return this.location == m.location &&
|
||||
this.offset.x == m.offset.x &&
|
||||
this.offset.y == m.offset.y &&
|
||||
this.path == m.path;
|
||||
};
|
||||
return params;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user