diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-07-16 18:51:59 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-07-16 18:51:59 -0400 |
commit | 9002a78d14854692a7ca36cbe9e8a9a92ea31636 (patch) | |
tree | a61e195ec4ea373f650b9f6692bede831c7b84df /common/modules/downloads.jsm | |
parent | 328b992969057cb643ac6e68ad76f7a98b064ba2 (diff) | |
download | pentadactyl-9002a78d14854692a7ca36cbe9e8a9a92ea31636.tar.gz |
s/\bset\b/Set/g
Diffstat (limited to 'common/modules/downloads.jsm')
-rw-r--r-- | common/modules/downloads.jsm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/modules/downloads.jsm b/common/modules/downloads.jsm index 5e8bcebf..faee6e22 100644 --- a/common/modules/downloads.jsm +++ b/common/modules/downloads.jsm @@ -86,10 +86,10 @@ var Download = Class("Download", { })), command: function command(name) { - util.assert(set.has(this.allowedCommands, name), _("download.unknownCommand")); + util.assert(Set.has(this.allowedCommands, name), _("download.unknownCommand")); util.assert(this.allowedCommands[name], _("download.commandNotAllowed")); - if (set.has(this.commands, name)) + if (Set.has(this.commands, name)) this.commands[name].call(this); else services.downloadManager[name + "Download"](this.id); @@ -446,7 +446,7 @@ var Downloads = Module("downloads", { }, completer: function (context, extra) { - let seen = set.has(set(extra.values.map(function (val) val.substr(1)))); + let seen = Set.has(Set(extra.values.map(function (val) val.substr(1)))); context.completions = iter(this.values).filter(function ([k, v]) !seen(k)) .map(function ([k, v]) [["+" + k, [v, " (", _("sort.ascending"), ")"].join("")], @@ -458,8 +458,8 @@ var Downloads = Module("downloads", { validator: function (value) { let seen = {}; - return value.every(function (val) /^[+-]/.test(val) && set.has(this.values, val.substr(1)) - && !set.add(seen, val.substr(1)), + return value.every(function (val) /^[+-]/.test(val) && Set.has(this.values, val.substr(1)) + && !Set.add(seen, val.substr(1)), this) && value.length; } }); |