diff --git a/src/CETEI.js b/src/CETEI.js index 5b07b24..b3756c0 100644 --- a/src/CETEI.js +++ b/src/CETEI.js @@ -292,9 +292,9 @@ decorator(template) { for (let rule of template) { if (elt.matches(rule[0]) || rule[0] === "_") { if (Array.isArray(rule[1])) { - return self.decorator(rule[1]).call(this, elt); + return self.decorator(rule[1]).call(self, elt); } else { - return rule[1].call(this, elt); + return rule[1].call(self, elt); } } }