From f10f4dc73fc672c2c7fa58d7ef296a3bf509967d Mon Sep 17 00:00:00 2001 From: Vadim Abdrashitov Date: Mon, 11 Aug 2014 12:03:50 +0600 Subject: [PATCH] fix for ie8 --- src/route-segment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/route-segment.js b/src/route-segment.js index 2aed975..5387670 100644 --- a/src/route-segment.js +++ b/src/route-segment.js @@ -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) { @@ -536,4 +536,4 @@ mod.filter('routeSegmentParam', ['$routeSegment', function($routeSegment) { }]); -})(angular); \ No newline at end of file +})(angular);