mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-31 19:35:45 +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
|
* @param {number} index
|
||||||
*/
|
*/
|
||||||
remove: function remove(name, filter, css, index) {
|
remove: function remove(name, filter, css, index) {
|
||||||
if (arguments.length == 1) {
|
|
||||||
var matches = [name];
|
|
||||||
name = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (filter && filter.includes(","))
|
if (filter && filter.includes(","))
|
||||||
return filter.split(",").reduce(
|
return filter.split(",").reduce(
|
||||||
(n, f) => n + this.removeSheet(name, f, index), 0);
|
(n, f) => n + this.removeSheet(name, f, index), 0);
|
||||||
@@ -232,8 +227,7 @@ var Hive = Class("Hive", {
|
|||||||
if (filter == undefined)
|
if (filter == undefined)
|
||||||
filter = "";
|
filter = "";
|
||||||
|
|
||||||
if (!matches)
|
var matches = this.find(name, filter, css, index);
|
||||||
matches = this.findSheets(name, filter, css, index);
|
|
||||||
if (matches.length == 0)
|
if (matches.length == 0)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user