jackbone.js
function (e) {
            e.preventDefault();
            var $target = $(e.target);
            while ($target) {
                var route = $target.attr('route');
                if (route) {
                    // A route has been defined, follow the link using
                    // Jackbone's default router.
                    if (route === 'back') {
                        Jackbone.router.goto(this.back.hash);
                    } else {
                        Jackbone.router.goto(route);
                    }
                    return false;
                }
                var parent = $target.parent();
                if (parent.length > 0) {
                    $target = parent;
                } else {
                    $target = false;
                }
            }
            return true;
        }
function (e) {
            e.preventDefault();
            var $target = $(e.target);
            while ($target) {
                var route = $target.attr('route');
                if (route) {
                    // A route has been defined, follow the link using
                    // Jackbone's default router.
                    if (route === 'back') {
                        Jackbone.router.goto(this.back.hash);
                    } else {
                        Jackbone.router.goto(route);
                    }
                    return false;
                }
                var parent = $target.parent();
                if (parent.length > 0) {
                    $target = parent;
                } else {
                    $target = false;
                }
            }
            return true;
        }
function ( e ) { e . preventDefault ( ) ; var $target = $ ( e . target ) ; while ( $target ) { var route = $target . attr ( 'route' ) ; if ( route ) { // A route has been defined, follow the link using // Jackbone's default router. if ( route === 'back' ) { Jackbone . router . goto ( this . back . hash ) ; } else { Jackbone . router . goto ( route ) ; } return false ; } var parent = $target . parent ( ) ; if ( parent . length > 0 ) { $target = parent ; } else { $target = false ; } } return true ; }
This is the default event handler
This is the default event handler