assets/itsa-mojitonthefly.client.js
function(anchornode) {
                var valid =  (anchornode.get('tagName')==='A') && anchornode.getAttribute('data-pjax-mojit'),
                    attributes, i, parheader;
                if (valid) {
                    attributes = {
                        'data-pjax-mojit': anchornode.getAttribute('data-pjax-mojit'),
                        'data-pjax-action': anchornode.getAttribute('data-pjax-action'),
                        'data-pjax-container': anchornode.getAttribute('data-pjax-container'),
                        'data-pjax-preload': anchornode.getAttribute('data-pjax-preload')
                    };
                    i = 0;
        /*jshint boss:true */
                    while (parheader=anchornode.getAttribute('data-pjax-par'+(++i))) {
                        attributes['data-pjax-par'+i] = parheader;
                    }
        /*jshint boss:false */
                    Y.fire(EVT_PJAX, {uri: anchornode.getAttribute('href'), targetid: anchornode.get('id'), attributes: attributes, fromhistorychange: false});
                }
            }
function(anchornode) {
                var valid =  (anchornode.get('tagName')==='A') && anchornode.getAttribute('data-pjax-mojit'),
                    attributes, i, parheader;
                if (valid) {
                    attributes = {
                        'data-pjax-mojit': anchornode.getAttribute('data-pjax-mojit'),
                        'data-pjax-action': anchornode.getAttribute('data-pjax-action'),
                        'data-pjax-container': anchornode.getAttribute('data-pjax-container'),
                        'data-pjax-preload': anchornode.getAttribute('data-pjax-preload')
                    };
                    i = 0;
        /*jshint boss:true */
                    while (parheader=anchornode.getAttribute('data-pjax-par'+(++i))) {
                        attributes['data-pjax-par'+i] = parheader;
                    }
        /*jshint boss:false */
                    Y.fire(EVT_PJAX, {uri: anchornode.getAttribute('href'), targetid: anchornode.get('id'), attributes: attributes, fromhistorychange: false});
                }
            }
function ( anchornode ) { var valid = ( anchornode . get ( 'tagName' ) === 'A' ) && anchornode . getAttribute ( 'data-pjax-mojit' ) , attributes , i , parheader ; if ( valid ) { attributes = { 'data-pjax-mojit' : anchornode . getAttribute ( 'data-pjax-mojit' ) , 'data-pjax-action' : anchornode . getAttribute ( 'data-pjax-action' ) , 'data-pjax-container' : anchornode . getAttribute ( 'data-pjax-container' ) , 'data-pjax-preload' : anchornode . getAttribute ( 'data-pjax-preload' ) } ; i = 0 ; /*jshint boss:true */ while ( parheader = anchornode . getAttribute ( 'data-pjax-par' + ( ++ i ) ) ) { attributes [ 'data-pjax-par' + i ] = parheader ; } /*jshint boss:false */ Y . fire ( EVT_PJAX , { uri : anchornode . getAttribute ( 'href' ) , targetid : anchornode . get ( 'id' ) , attributes : attributes , fromhistorychange : false } ) ; } }
Simulates an achorclick on a Pjax-link-element.

@method Y.mojito.pjax.simulateAnchorClick
@param anchornode {Y.Node} the node on which the click should be simulated
Simulates an achorclick on a Pjax - link - element .