Skip to content

Commit 1b9a407

Browse files
committed
new build
1 parent 093c75a commit 1b9a407

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

release/angular-ui-router.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* State-based routing for AngularJS
3-
* @version v0.2.15
3+
* @version v0.2.15-dev-2015-11-19
44
* @link http://angular-ui.github.com/
55
* @license MIT License, http://www.opensource.org/licenses/MIT
66
*/
@@ -20,6 +20,7 @@ var isDefined = angular.isDefined,
2020
isString = angular.isString,
2121
isObject = angular.isObject,
2222
isArray = angular.isArray,
23+
isDate = angular.isDate,
2324
forEach = angular.forEach,
2425
extend = angular.extend,
2526
copy = angular.copy;
@@ -139,7 +140,11 @@ function equalForKeys(a, b, keys) {
139140

140141
for (var i=0; i<keys.length; i++) {
141142
var k = keys[i];
142-
if (a[k] != b[k]) return false; // Not '===', values aren't necessarily normalized
143+
if (isDate(a[k]) && isDate(b[k])) {
144+
if (a[k].getTime() !== b[k].getTime()) return false;
145+
} else {
146+
if (a[k] != b[k]) return false; // Not '===', values aren't necessarily normalized
147+
}
143148
}
144149
return true;
145150
}
@@ -4293,6 +4298,7 @@ function $StateRefActiveDirective($state, $stateParams, $interpolate) {
42934298
};
42944299

42954300
$scope.$on('$stateChangeSuccess', update);
4301+
$scope.$on('$locationChangeSuccess', update);
42964302

42974303
// Update route state
42984304
function update() {

0 commit comments

Comments
 (0)