@@ -96,7 +96,6 @@ function addRepoPopover(
9696 // acv
9797 cv . appCodeVersions . create ( body , function ( err ) {
9898 if ( err ) { throw err ; }
99- $rootScope . safeApply ( ) ;
10099 } ) ;
101100 }
102101 } ;
@@ -109,7 +108,6 @@ function addRepoPopover(
109108 keypather . set ( githubRepo , 'state.selectedBranch' , activeBranch ) ;
110109 // reset branch state
111110 activeBranch . state = { } ;
112- $rootScope . safeApply ( ) ;
113111 return activeBranch ;
114112 }
115113
@@ -127,14 +125,12 @@ function addRepoPopover(
127125 var instance = instances . models [ 0 ] ;
128126 $scope . repoListPopover . data . instance = instance ;
129127 $scope . repoListPopover . data . build = instance . build ;
130- $rootScope . safeApply ( ) ;
131128 } )
132129 . resolve ( function ( err , instances , cb ) {
133130 var instance = instances . models [ 0 ] ;
134131 if ( ! keypather . get ( instance , 'containers.models' ) || ! instance . containers . models . length ) {
135132 return cb ( new Error ( 'instance has no containers' ) ) ;
136133 }
137- $rootScope . safeApply ( ) ;
138134 cb ( err ) ;
139135 } )
140136 . go ( ) ;
@@ -149,12 +145,10 @@ function addRepoPopover(
149145 . query ( $stateParams . buildId )
150146 . cacheFetch ( function ( build , cached , cb ) {
151147 $scope . repoListPopover . data . build = build ;
152- $rootScope . safeApply ( ) ;
153148 cb ( ) ;
154149 } )
155150 . resolve ( function ( err , build , cb ) {
156151 if ( err ) { throw err ; }
157- $rootScope . safeApply ( ) ;
158152 cb ( ) ;
159153 } )
160154 . go ( ) ;
@@ -210,7 +204,6 @@ function addRepoPopover(
210204 noStore : true
211205 } ) ;
212206 }
213- $rootScope . safeApply ( ) ;
214207 // recursive until result set returns fewer than
215208 // 100 repos, indicating last paginated result
216209 if ( githubRepos . models . length < 100 ) {
@@ -230,7 +223,6 @@ function addRepoPopover(
230223 if ( err ) { return cb ( err ) ; }
231224 $scope . user = user ;
232225 $scope . repoListPopover . data . user = user ;
233- $rootScope . safeApply ( ) ;
234226 cb ( ) ;
235227 } ) ;
236228 } ,
0 commit comments