src/aria/utils/Delegate.js
function (eventName, delegateId, wrapTarget) {
            if (ariaCoreBrowser.isOldIE) {
                this.getFallbackMarkup = function (eventName, delegateId, wrapTarget) {
                    wrapTarget = wrapTarget ? "true" : "false";
                    return " on" + eventName + "=\"aria.utils.Delegate.directCall(event, '" + delegateId + "', "
                            + wrapTarget + ", this)\"";
                };
            } else {
                this.getFallbackMarkup = function (eventName, delegateId, wrapTarget) {
                    var calledFunction = "directCall";
                    wrapTarget = wrapTarget ? "true" : "false";

                    if ('mouseleave' == eventName || 'mouseenter' == eventName) {
                        // Mouseleave/enter exists only in IE, we can emulate them in all other browsers
                        eventName = 'mouseleave' == eventName ? 'mouseout' : 'mouseover';
                        calledFunction = "mouseMovement";
                    }

                    return " on" + eventName + "=\"aria.utils.Delegate." + calledFunction + "(event, '" + delegateId
                            + "', " + wrapTarget + ", this)\"";
                };
            }
            return this.getFallbackMarkup(eventName, delegateId, wrapTarget);
        }
function (eventName, delegateId, wrapTarget) {
            if (ariaCoreBrowser.isOldIE) {
                this.getFallbackMarkup = function (eventName, delegateId, wrapTarget) {
                    wrapTarget = wrapTarget ? "true" : "false";
                    return " on" + eventName + "=\"aria.utils.Delegate.directCall(event, '" + delegateId + "', "
                            + wrapTarget + ", this)\"";
                };
            } else {
                this.getFallbackMarkup = function (eventName, delegateId, wrapTarget) {
                    var calledFunction = "directCall";
                    wrapTarget = wrapTarget ? "true" : "false";

                    if ('mouseleave' == eventName || 'mouseenter' == eventName) {
                        // Mouseleave/enter exists only in IE, we can emulate them in all other browsers
                        eventName = 'mouseleave' == eventName ? 'mouseout' : 'mouseover';
                        calledFunction = "mouseMovement";
                    }

                    return " on" + eventName + "=\"aria.utils.Delegate." + calledFunction + "(event, '" + delegateId
                            + "', " + wrapTarget + ", this)\"";
                };
            }
            return this.getFallbackMarkup(eventName, delegateId, wrapTarget);
        }
function ( eventName , delegateId , wrapTarget ) { if ( ariaCoreBrowser . isOldIE ) { this . getFallbackMarkup = function ( eventName , delegateId , wrapTarget ) { wrapTarget = wrapTarget ? "true" : "false" ; return " on" + eventName + "=\"aria.utils.Delegate.directCall(event, '" + delegateId + "', " + wrapTarget + ", this)\"" ; } ; } else { this . getFallbackMarkup = function ( eventName , delegateId , wrapTarget ) { var calledFunction = "directCall" ; wrapTarget = wrapTarget ? "true" : "false" ; if ( 'mouseleave' == eventName || 'mouseenter' == eventName ) { // Mouseleave/enter exists only in IE, we can emulate them in all other browsers eventName = 'mouseleave' == eventName ? 'mouseout' : 'mouseover' ; calledFunction = "mouseMovement" ; } return " on" + eventName + "=\"aria.utils.Delegate." + calledFunction + "(event, '" + delegateId + "', " + wrapTarget + ", this)\"" ; } ; } return this . getFallbackMarkup ( eventName , delegateId , wrapTarget ) ; }
Generate classic "onsomething" markup for event not supported by delegation
@param {String} eventName
@param {String} callback id
@param {Boolean} wrapTarget, if true, wrap target into DOMWrapper
@method
@return {String}
Generate classic onsomething markup for event not supported by delegation