Skip to content

Commit af826d0

Browse files
committed
Merge branch 'jgrund-remove-watcher'
2 parents 6a45863 + e8d87a3 commit af826d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/route-segment.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,10 @@ mod.provider( '$routeSegment',
447447
for(var j = updates[i].index + 1; j < $routeSegment.chain.length; j++) {
448448

449449
if($routeSegment.chain[j]) {
450+
if ($routeSegment.chain[j].clearWatcher) {
451+
$routeSegment.chain[j].clearWatcher();
452+
}
453+
450454
$routeSegment.chain[j] = null;
451455
updateSegment(j, null);
452456
}

0 commit comments

Comments
 (0)