Skip to content

Commit

Permalink
Merge pull request #58 from jincod/master
Browse files Browse the repository at this point in the history
fix for ie8
  • Loading branch information
artch committed Aug 12, 2014
2 parents c92e099 + f10f4dc commit 0aaa25b
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 0aaa25b

Please sign in to comment.