|
@@ -116,8 +116,8 @@ class Template {
|
|
|
if( value != null || Reflect.hasField(context,v) )
|
|
|
return value;
|
|
|
for( ctx in stack ) {
|
|
|
- var v = Reflect.getProperty(ctx,v);
|
|
|
- if( v != null || Reflect.hasField(ctx,v) )
|
|
|
+ value = Reflect.getProperty(ctx,v);
|
|
|
+ if( value != null || Reflect.hasField(ctx,v) )
|
|
|
return v;
|
|
|
}
|
|
|
if( v == "__current__" )
|