mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-30 19:22:28 +01:00
Move iteration utility functions to the iter namespace.
This commit is contained in:
@@ -29,12 +29,9 @@ var Marks = Module("marks", {
|
||||
* @property {Array} Returns all marks, both local and URL, in a sorted
|
||||
* array.
|
||||
*/
|
||||
get all() {
|
||||
let lmarks = array(Iterator(this._localMarks.get(this.localURI) || {}));
|
||||
let umarks = array(Iterator(this._urlMarks)).array;
|
||||
|
||||
return lmarks.concat(umarks).sort(function (a, b) String.localeCompare(a[0], b[0]));
|
||||
},
|
||||
get all() iter(this._localMarks.get(this.localURI) || {},
|
||||
this._urlMarks
|
||||
).sort(function (a, b) String.localeCompare(a[0], b[0])),
|
||||
|
||||
get localURI() buffer.focusedFrame.document.documentURI,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user