Index: lib/filterClasses.js |
=================================================================== |
--- a/lib/filterClasses.js |
+++ b/lib/filterClasses.js |
@@ -324,6 +324,12 @@ |
*/ |
get domains() |
{ |
+ // despite this property is cached, the getter is called |
Wladimir Palant
2014/08/27 12:52:55
"Despite this property being cached" please (capit
|
+ // several times on Safari, due to WebKit bug 132872 |
+ let prop = Object.getOwnPropertyDescriptor(this, "domains"); |
+ if (prop) |
+ return prop.value; |
+ |
let domains = null; |
if (this.domainSource) |
@@ -514,6 +520,12 @@ |
*/ |
get regexp() |
{ |
+ // despite this property is cached, the getter is called |
Wladimir Palant
2014/08/27 12:52:55
Same as above, "Despite this property being cached
|
+ // several times on Safari, due to WebKit bug 132872 |
+ let prop = Object.getOwnPropertyDescriptor(this, "regexp"); |
+ if (prop) |
+ return prop.value; |
+ |
// Remove multiple wildcards |
let source = this.regexpSource |
.replace(/\*+/g, "*") // remove multiple wildcards |