1 line
540 B
JavaScript
1 line
540 B
JavaScript
|
define(["require","exports","hasher","knockout","crossroads"],function(n,r,e,t,o){"use strict";r.__esModule=!0;var u=function(){function n(n){var r=this;this.CurrentRoute=t.observable(null),t.utils.arrayForEach(n.routes,function(n){o.addRoute(n.url,function(e){console.log("changing route"),r.CurrentRoute({url:n.url,component:n.component,params:t.utils.extend(e,n.params)})})}),o.normalizeFn=o.NORM_AS_OBJECT,e.initialized.add(function(n){return o.parse(n)}),e.changed.add(function(n){return o.parse(n)}),e.init()}return n}();r.Router=u});
|