From db187d85e26f8052d3ccf6dbdb19900e0db55534 Mon Sep 17 00:00:00 2001 From: Avital Oliver Date: Tue, 20 Aug 2013 15:38:08 -0700 Subject: [PATCH] Fix 'this' within template helpers --- packages/ui/fields.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/fields.js b/packages/ui/fields.js index ec165ae1fa..bb8ed11dd4 100644 --- a/packages/ui/fields.js +++ b/packages/ui/fields.js @@ -35,7 +35,7 @@ _extend(UI.Component, { } else if ((comp = findComponentWithProp(id, self))) { // found a method result = comp[id]; - thisToBind = comp; + thisToBind = self; } else if (id === 'if') { result = UI.If; } else if (id === 'each') {