@@ -765,28 +765,29 @@ component accessors="true" extends="coldbox.system.FrameworkSupertype" threadsaf
765765 }
766766
767767 // Check for existing route matches
768- var matchingRoutes = variables .routes .filter ( function ( route ) {
769- return route .pattern == this Route .pattern &&
770- route .domain == this Route .domain ;
771- } );
772- if ( ! matchingRoutes .isEmpty () ) {
773- var matchingRoute = matchingRoutes [ 1 ];
774- // collect action:
775- var actions = {};
776- var matchingActions = isStruct ( matchingRoute .action ) ? matchingRoute .action : {};
777- structAppend ( actions , matchingActions , true );
778- for ( var verb in matchingRoute .verbs ) {
779- structInsert ( actions , verb , matchingRoute .event );
780- }
781- var this RouteActions = isStruct ( this Route .action ) ? this Route .action : {};
782- structAppend ( actions , this RouteActions , true );
783- for ( var verb in this Route .verbs ) {
784- structInsert ( actions , verb , this Route .event );
785- }
786- matchingRoute .action = actions ;
787- matchingRoute .verbs = " " ;
788- return this ;
789- }
768+ // var matchingRoutes = variables.routes.filter( function( route ) {
769+ // return route.pattern == thisRoute.pattern &&
770+ // route.domain == thisRoute.domain;
771+ // } );
772+ // if ( ! matchingRoutes.isEmpty() ) {
773+ // writeDump( var=matchingRoutes );abort;
774+ // var matchingRoute = matchingRoutes[ 1 ];
775+ // // collect action:
776+ // var actions = {};
777+ // var matchingActions = isStruct( matchingRoute.action ) ? matchingRoute.action : {};
778+ // structAppend( actions, matchingActions, true );
779+ // for ( var verb in matchingRoute.verbs ) {
780+ // structInsert( actions, verb, matchingRoute.event );
781+ // }
782+ // var thisRouteActions = isStruct( thisRoute.action ) ? thisRoute.action : {};
783+ // structAppend( actions, thisRouteActions, true );
784+ // for ( var verb in thisRoute.verbs ) {
785+ // structInsert( actions, verb, thisRoute.event );
786+ // }
787+ // matchingRoute.action = actions;
788+ // matchingRoute.verbs = "";
789+ // return this;
790+ // }
790791
791792 // Check if we have optional args by looking for a ?
792793 if ( findnocase ( " ?" , this Route .pattern ) AND NOT findNoCase ( " regex:" , this Route .pattern ) ){
0 commit comments