mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 05:11:03 +00:00
bits of Bug 1229519: Fix toolkit/components/satchel to pass eslint checks. r=dolske
This commit is contained in:
@@ -516,7 +516,7 @@ FormAutoCompleteChild.prototype = {
|
||||
|
||||
let result = new FormAutoCompleteResult(
|
||||
null,
|
||||
[for (res of message.data.results) {text: res}],
|
||||
Array.from(message.data.results, res => ({ text: res })),
|
||||
null,
|
||||
null
|
||||
);
|
||||
|
||||
@@ -624,7 +624,7 @@ FormHistory.prototype = {
|
||||
},
|
||||
|
||||
dbCreateTable: function(name, table) {
|
||||
let tSQL = [[col, table[col]].join(" ") for (col in table)].join(", ");
|
||||
let tSQL = Object.keys(table).map(col => [col, table[col]].join(" ")).join(", ");
|
||||
this.log("Creating table " + name + " with " + tSQL);
|
||||
this.dbConnection.createTable(name, tSQL);
|
||||
},
|
||||
@@ -802,7 +802,7 @@ FormHistory.prototype = {
|
||||
for (let name in this.dbSchema.tables) {
|
||||
let table = this.dbSchema.tables[name];
|
||||
let query = "SELECT " +
|
||||
[col for (col in table)].join(", ") +
|
||||
Object.keys(table).join(", ") +
|
||||
" FROM " + name;
|
||||
try {
|
||||
let stmt = this.dbConnection.createStatement(query);
|
||||
|
||||
Reference in New Issue
Block a user