function addEventListener($ref, type, handler) {
	$ref.onref = ($el) => {
		$el.addEventListener(type, handler);
	};
}
Binds an event listener to the 'onref' method of the specified element reference.

@param {Ref} $ref - The element reference containing the 'onref' method.
@param {string} type - The event type to listen for (e.g., 'input', 'change').
@param {Function} handler - The event handler function to be executed when the event occurs.
@returns {void}

@example
// Add an input event listener to $search element reference
addEventListener($search, 'input', debounceInput);