Fix 'this' within template helpers

This commit is contained in:
Avital Oliver
2013-08-20 15:38:08 -07:00
parent afc2759e01
commit db187d85e2

View File

@@ -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') {