diff options
author | Kris Maglione <maglione.k@gmail.com> | 2013-08-21 22:55:55 -0700 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2013-08-21 22:55:55 -0700 |
commit | c89f3e0df5cfd776acf4843351948453a1719ce2 (patch) | |
tree | 88da92b93138e2e40c74438643a8c4d25b1f80d3 /common/modules/styles.jsm | |
parent | e5864bfd235e805fa0af301a41dc88f61e8c3006 (diff) | |
download | pentadactyl-c89f3e0df5cfd776acf4843351948453a1719ce2.tar.gz |
Hello strange new syntax. Can we be friends?
Diffstat (limited to 'common/modules/styles.jsm')
-rw-r--r-- | common/modules/styles.jsm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/modules/styles.jsm b/common/modules/styles.jsm index 6de607a2..ffa4c696 100644 --- a/common/modules/styles.jsm +++ b/common/modules/styles.jsm @@ -203,7 +203,6 @@ var Hive = Class("Hive", { * @param {number} index */ remove: function remove(name, filter, css, index) { - let self = this; if (arguments.length == 1) { var matches = [name]; name = null; @@ -211,7 +210,7 @@ var Hive = Class("Hive", { if (filter && filter.indexOf(",") > -1) return filter.split(",").reduce( - function (n, f) n + self.removeSheet(name, f, index), 0); + (n, f) => n + this.removeSheet(name, f, index), 0); if (filter == undefined) filter = ""; |