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

Unified Diff: chrome/content/ui/filters.js

Issue 29338626: Issue 3835 - Update dependency on adblockpluscore to revision 2d4888611240 (Closed)
Patch Set: Fixed updateRequired replacement Created March 19, 2016, 6:57 p.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 | chrome/content/ui/filters.xul » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/ui/filters.js
===================================================================
--- a/chrome/content/ui/filters.js
+++ b/chrome/content/ui/filters.js
@@ -112,16 +112,17 @@ var Templater =
*/
process: function(/**Node*/ template, /**Object*/ data) /**Node*/
{
// Use a sandbox to resolve attributes (for convenience, not security)
let sandbox = Cu.Sandbox(window);
for (let key in data)
sandbox[key] = data[key];
sandbox.formatTime = Utils.formatTime;
+ sandbox.getSubscriptionTitle = getSubscriptionTitle;
// Clone template but remove id/hidden attributes from it
let result = template.cloneNode(true);
result.removeAttribute("id");
result.removeAttribute("hidden");
result._data = data;
// Resolve any attributes of the for attr="{obj.foo}"
« no previous file with comments | « no previous file | chrome/content/ui/filters.xul » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld