1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-26 09:32:26 +01:00

Fix error with assigning to String in hints mode

Fixes #154
This commit is contained in:
Sebastian Kalinowski
2016-04-28 21:00:02 +02:00
parent 0b835e187b
commit 06ab616da2

View File

@@ -220,11 +220,6 @@ var Hive = Class("Hive", {
* @param {number} index
*/
remove: function remove(name, filter, css, index) {
if (arguments.length == 1) {
var matches = [name];
name = null;
}
if (filter && filter.includes(","))
return filter.split(",").reduce(
(n, f) => n + this.removeSheet(name, f, index), 0);
@@ -232,8 +227,7 @@ var Hive = Class("Hive", {
if (filter == undefined)
filter = "";
if (!matches)
matches = this.findSheets(name, filter, css, index);
var matches = this.find(name, filter, css, index);
if (matches.length == 0)
return null;