mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:22:28 +01:00
move array utility methods to util.Array
This commit is contained in:
@@ -52,7 +52,7 @@ function Buffer() //{{{
|
||||
120, 150, 200, 300, 500, 1000, 2000 ];
|
||||
|
||||
const util = modules.util;
|
||||
const arrayIter = util.arrayIter;
|
||||
const arrayIter = util.Array.iterator;
|
||||
|
||||
function Styles(name, store, serial)
|
||||
{
|
||||
@@ -268,7 +268,7 @@ function Buffer() //{{{
|
||||
}
|
||||
}
|
||||
Styles.prototype = {
|
||||
get sites() util.uniq(util.flatten([v.sites for ([k, v] in this.userSheets)]))
|
||||
get sites() util.Array.uniq(util.Array.flatten([v.sites for ([k, v] in this.userSheets)]))
|
||||
};
|
||||
|
||||
let styles = storage.newObject("styles", Styles, false);
|
||||
|
||||
Reference in New Issue
Block a user