dist/jquery.jetroute.js
function compareUrlRoute(currentURL, currentRoute) {
                var regex = /\{(.*)\}/i;
                var arraySize = currentRoute.length,
                    testValue = false;
                for (var i = 0; i < arraySize; i++) {
                    var dynamic = regex.exec(currentRoute[i]);
                    if (dynamic) {
                        document.routeParams[dynamic[1]] = currentURL[i];
                    } else {
                        if (currentRoute[i] === currentURL[i]) {
                            testValue = true;
                        }
                    }
                }

                return testValue;
            }
function compareUrlRoute(currentURL, currentRoute) {
                var regex = /\{(.*)\}/i;
                var arraySize = currentRoute.length,
                    testValue = false;
                for (var i = 0; i < arraySize; i++) {
                    var dynamic = regex.exec(currentRoute[i]);
                    if (dynamic) {
                        document.routeParams[dynamic[1]] = currentURL[i];
                    } else {
                        if (currentRoute[i] === currentURL[i]) {
                            testValue = true;
                        }
                    }
                }

                return testValue;
            }
function compareUrlRoute ( currentURL , currentRoute ) { var regex = / \{(.*)\} / i ; var arraySize = currentRoute . length , testValue = false ; for ( var i = 0 ; i < arraySize ; i ++ ) { var dynamic = regex . exec ( currentRoute [ i ] ) ; if ( dynamic ) { document . routeParams [ dynamic [ 1 ] ] = currentURL [ i ] ; } else { if ( currentRoute [ i ] === currentURL [ i ] ) { testValue = true ; } } } return testValue ; }
Route Compare and Dynamic Route Atributes
@param currentURL
@param currentRoute
@returns {boolean}
Route Compare and Dynamic Route Atributes