Add parent attributes to closures so that they can call their parents' fragments.