Skip to content

Commit ede0cf4

Browse files
cironunespkozlowski-opensource
authored andcommitted
chore($apply): use minErr to throw exception
chore($apply): use minErr to throw exception chore($apply): use minErr to throw exception
1 parent e14e219 commit ede0cf4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ng/rootScope.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ function $RootScopeProvider(){
575575
*
576576
* @description
577577
* Broadcasted when a scope and its children are being destroyed.
578-
*
578+
*
579579
* Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to
580580
* clean up DOM bindings before an element is removed from the DOM.
581581
*/
@@ -599,7 +599,7 @@ function $RootScopeProvider(){
599599
* Just before a scope is destroyed a `$destroy` event is broadcasted on this scope.
600600
* Application code can register a `$destroy` event handler that will give it chance to
601601
* perform any necessary cleanup.
602-
*
602+
*
603603
* Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to
604604
* clean up DOM bindings before an element is removed from the DOM.
605605
*/
@@ -739,7 +739,7 @@ function $RootScopeProvider(){
739739
$rootScope.$digest();
740740
} catch (e) {
741741
$exceptionHandler(e);
742-
throw e;
742+
throw $rootScopeMinErr('baddigest', "The $apply's $digest can't be completed");
743743
}
744744
}
745745
},

0 commit comments

Comments
 (0)