mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-25 19:12:27 +01:00
Merge pull request #156 from prmtl/fix/following-hints
Fix error with assigning to String in hints mode
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user