Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/filterClasses.js

Issue 5825855188107264: Issue 419 - ElemHideFilter.domains getter doesn`t persist on Safari (Closed)
Patch Set: Created May 5, 2014, 10:24 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/filterClasses.js
===================================================================
--- a/lib/filterClasses.js
+++ b/lib/filterClasses.js
@@ -362,17 +362,17 @@ ActiveFilter.prototype =
domains[domain] = include;
}
domains[""] = !hasIncludes;
}
this.domainSource = null;
}
- this.__defineGetter__("domains", function() domains);
+ Object.defineProperty(this, "domains", {value: domains, enumerable: true});
return this.domains;
},
/**
* Checks whether this filter is active on a domain.
*/
isActiveOnDomain: function(/**String*/ docDomain) /**Boolean*/
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld