diff options
| -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); | 
