updateReference( state ) {

		this.reference = this.object !== null ? this.object : state.object;

		return this.reference;

	}
Allows to update the reference based on the given state. The state is only
evaluated {@link ReferenceBaseNode#object} is not set.

@param {(NodeFrame|NodeBuilder)} state - The current state.
@return {Object} The updated reference.