Commit cfe20c3f authored by Thomas Greiner's avatar Thomas Greiner

Issue 7288 - Fixed: Adapted code to work with moved isSlowFilter() function

parent 1a2cc416
......@@ -26,7 +26,7 @@
const {Utils} = require("utils");
const {filterStorage} = require("filterStorage");
const {filterNotifier} = require("filterNotifier");
const {defaultMatcher, Matcher} = require("matcher");
const {defaultMatcher, isSlowFilter, Matcher} = require("matcher");
const {Notification: NotificationStorage} = require("notification");
const {getActiveNotification, shouldDisplay,
notificationClicked} = require("notificationHelper");
......@@ -80,7 +80,7 @@
// pollute a converted filter object with `slow` detail
// there are 3 kind of slow filters
// 1. filter instanceof RegExpFilter && defaultMatcher.isSlowFilter(filter)
// 1. filter instanceof RegExpFilter && isSlowFilter(filter)
// 2. filter instanceof ElemHideEmulationFilter
// 3. filter instanceof SnippetFilter
// for the time being, we want to simply expose the first kind
......@@ -88,8 +88,7 @@
function convertFilter(filter)
{
const obj = convertObject(["disabled", "text"], filter);
obj.slow = filter instanceof RegExpFilter &&
defaultMatcher.isSlowFilter(filter);
obj.slow = filter instanceof RegExpFilter && isSlowFilter(filter);
return obj;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment