Skip to content

Commit

Permalink
fix for ie8
Browse files Browse the repository at this point in the history
  • Loading branch information
jincod committed Aug 11, 2014
1 parent c92e099 commit f10f4dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/route-segment.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ mod.provider( '$routeSegment',
curSegment = null;
for (var i in children) {
(function(i, children, index) {
if (children[i].params.default) {
if (children[i].params['default']) {
defaultChildUpdatePromise = defaultChildUpdatePromise.then(function () {
return updateSegment(index, {name: i, params: children[i].params})
.then(function (result) {
Expand Down Expand Up @@ -536,4 +536,4 @@ mod.filter('routeSegmentParam', ['$routeSegment', function($routeSegment) {
}]);


})(angular);
})(angular);

0 comments on commit f10f4dc

Please sign in to comment.