Assigning a weak reference to the delegate property. To avoid retain cycles.