From 28e962edf2d6212a85b9a68f3cf5bc74a1b3118b Mon Sep 17 00:00:00 2001 From: "pabs@pablotron.org" Date: Thu, 18 Dec 2014 01:15:36 -0500 Subject: remove filters option --- luigi-template.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'luigi-template.js') diff --git a/luigi-template.js b/luigi-template.js index 610e120..c787e6e 100644 --- a/luigi-template.js +++ b/luigi-template.js @@ -125,7 +125,6 @@ LuigiTemplate = (function() { function init(s, o) { this.s = s; this.o = o; - this.filters = (o && 'filters' in o) ? o.filters : {}; }; function safe_trim(s) { @@ -152,9 +151,8 @@ LuigiTemplate = (function() { return r; } - function get_filter(k, me) { - var r = me.filters[k] || FILTERS[k]; - + function get_filter(k) { + var r = FILTERS[k]; if (!r) throw new Error("unknown filter: " + k); -- cgit v1.2.3