1
0
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:
Doug Kearns
2008-10-19 07:26:17 +00:00
parent ca28d52ed4
commit d14a32afa3
9 changed files with 52 additions and 63 deletions

View File

@@ -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);