Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix a bug in locationRouter preventing the url from being updated whi…

…le navigating
  • Loading branch information...
commit c4c9b9c1324da18171199f26511af683695e29a9 1 parent e087283
@podefr podefr authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  specs/LocationRouter.spec.js
  2. +1 −1  src/LocationRouter.js
View
2  specs/LocationRouter.spec.js
@@ -111,7 +111,7 @@ require(["LocationRouter", "Router"], function (LocationRouter, Router) {
locationRouter.bindOnRouteChange();
- expect(locationRouter.watch).toHaveBeenCalledWith("route", locationRouter.onRouteChange, locationRouter);
+ expect(locationRouter.watch).toHaveBeenCalledWith(locationRouter.onRouteChange, locationRouter);
});
it("updates the hash in the url on route change", function () {
View
2  src/LocationRouter.js
@@ -103,7 +103,7 @@ function LocationRouter(Router, Tools) {
* @private
*/
this.bindOnRouteChange = function bindOnRouteChange() {
- _watchHandle = this.watch("route", this.onRouteChange, this);
+ _watchHandle = this.watch(this.onRouteChange, this);
};
/**

0 comments on commit c4c9b9c

Please sign in to comment.
Something went wrong with that request. Please try again.