diff options
author | pabs@pablotron.org <pabs@pablotron.org> | 2014-12-18 01:15:36 -0500 |
---|---|---|
committer | pabs@pablotron.org <pabs@pablotron.org> | 2014-12-18 01:15:36 -0500 |
commit | 28e962edf2d6212a85b9a68f3cf5bc74a1b3118b (patch) | |
tree | 7c1b1e95d75775a1480dbde7aca6d9a774c03734 | |
parent | 57b87aebef1bde7fd5c024f0af835f3bd33fc553 (diff) | |
download | luigi-template-28e962edf2d6212a85b9a68f3cf5bc74a1b3118b.tar.bz2 luigi-template-28e962edf2d6212a85b9a68f3cf5bc74a1b3118b.zip |
remove filters option
-rw-r--r-- | luigi-template.js | 6 |
1 files changed, 2 insertions, 4 deletions
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); |