mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-17 07:35:44 +01:00
Promisify some callbackish functions, and remove spaces around = in default arguments, per Python conventions.
This commit is contained in:
@@ -11,7 +11,7 @@ defineModule("messages", {
|
||||
|
||||
var Messages = Module("messages", {
|
||||
|
||||
init: function init(name = "messages") {
|
||||
init: function init(name="messages") {
|
||||
let self = this;
|
||||
this.name = name;
|
||||
|
||||
@@ -107,7 +107,7 @@ var Messages = Module("messages", {
|
||||
let { Buffer, commands, hints, io, mappings, modes, options, sanitizer } = overlay.activeModules;
|
||||
file = io.File(file);
|
||||
|
||||
function properties(base, iter_, prop = "description") iter(function _properties() {
|
||||
function properties(base, iter_, prop="description") iter(function _properties() {
|
||||
function key(...args) [base, obj.identifier || obj.name].concat(args).join(".").replace(/[\\:=]/g, "\\$&");
|
||||
|
||||
for (var obj in iter_) {
|
||||
|
||||
Reference in New Issue
Block a user