Skip to content

Commit 433b155

Browse files
committed
for handlers with explicit component specialisation, use parent passed to transform_roots
1 parent 967c877 commit 433b155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/js/component.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def transform_root(self, registry, parent, property, lookup_parent=False):
577577
if property == 'context':
578578
return ("%s._get('%s')" %(parent, property)) if parent else '_context'
579579
elif property == 'parent':
580-
return 'parent'
580+
return "%s.parent" %parent if parent else 'parent'
581581
elif property == 'this':
582582
return 'this'
583583
elif property == 'window':

0 commit comments

Comments
 (0)