mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 04:45:48 +01:00
Replace expression closures (getters).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -28,12 +28,16 @@ var Marks = Module("marks", {
|
||||
* @property {Array} Returns all marks, both local and URL, in a sorted
|
||||
* array.
|
||||
*/
|
||||
get all() iter(this._localMarks.get(this.localURI) || {},
|
||||
this._urlMarks
|
||||
).sort((a, b) => String.localeCompare(a[0], b[0]))
|
||||
.toArray(),
|
||||
get all() {
|
||||
return iter(this._localMarks.get(this.localURI) || {},
|
||||
this._urlMarks
|
||||
).sort((a, b) => String.localeCompare(a[0], b[0]))
|
||||
.toArray();
|
||||
},
|
||||
|
||||
get localURI() buffer.focusedFrame.document.documentURI.replace(/#.*/, ""),
|
||||
get localURI() {
|
||||
return buffer.focusedFrame.document.documentURI.replace(/#.*/, "");
|
||||
},
|
||||
|
||||
Mark: function Mark(params={}) {
|
||||
let win = buffer.focusedFrame;
|
||||
|
||||
Reference in New Issue
Block a user