Roo/DomTemplate.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 10 Apr 2012 10:56:36 +0000 (18:56 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 10 Apr 2012 10:56:36 +0000 (18:56 +0800)
Roo/DomTemplate.js

index b982e1c..b8c5e5a 100644 (file)
@@ -161,7 +161,7 @@ Roo.extend(Roo.DomTemplate, Roo.Template, {
         tpl.id = tpl.uid;
         switch(tpl.attr) {
             case 'for' :
-                switch (attr.value) {
+                switch (tpl.value) {
                     case '.':  tpl.forCall = new Function('values', 'parent', 'with(values){ return values; }'); break;
                     case '..': tpl.forCall= new Function('values', 'parent', 'with(values){ return parent; }'); break;
                     default:   tpl.forCall= new Function('values', 'parent', 'with(values){ return '+tpl.value+'; }');