Index: compiled/bindings.cpp |
=================================================================== |
--- a/compiled/bindings.cpp |
+++ b/compiled/bindings.cpp |
@@ -59,18 +59,19 @@ EMSCRIPTEN_BINDINGS |
.property("hitCount", &ActiveFilter::GetHitCount, &ActiveFilter::SetHitCount) |
.property("lastHit", &ActiveFilter::GetLastHit, &ActiveFilter::SetLastHit) |
.function("isActiveOnDomain", &ActiveFilter::IsActiveOnDomain) |
.function("isActiveOnlyOnDomain", &ActiveFilter::IsActiveOnlyOnDomain) |
.function("isGeneric", &ActiveFilter::IsGeneric) |
.function("serialize", &ActiveFilter::Serialize); |
class_<RegExpFilter,ActiveFilter>("RegExpFilter") |
- .function("matches", &RegExpFilter::Matches) |
- .class_initializer(&RegExpFilter::InitJSTypes); |
+ .function("matches", &RegExpFilter::Matches); |
+ |
+ custom_generator(&RegExpFilter::GenerateCustomBindings); |
class_<BlockingFilter,RegExpFilter>("BlockingFilter") |
.class_property("type", "'blocking'"); |
class_<WhitelistFilter,RegExpFilter>("WhitelistFilter") |
.class_property("type", "'whitelist'"); |
class_<ElemHideBase,ActiveFilter>("ElemHideBase") |