mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
significant rewrite of the $location service
- don't update browser before and after eval instead - sync location properties before eval - sync location properties and update browser after eval - added tests - symplified the code - removed $location.toString() because it was not idempotent and useless This resolves the issue with issuing two $route.onHashChange calls when the $location was updated with a hashPath that needs to be encoded
This commit is contained in:
2
test/angular-mocks.js
vendored
2
test/angular-mocks.js
vendored
@@ -77,6 +77,8 @@ function MockBrowser() {
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
return listener;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user