this event can be setup via a Y.View event. See the YUI docs http://yuilibrary.com/yui/docs/view/#handling-dom-events.

There's some other views in the file that demonstrate this as well.