@@ -2691,24 +2691,22 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2691
2691
if ( hasDirectives . hasOwnProperty ( name ) ) {
2692
2692
for ( var directive , directives = $injector . get ( name + Suffix ) ,
2693
2693
i = 0 , ii = directives . length ; i < ii ; i ++ ) {
2694
- try {
2695
- directive = directives [ i ] ;
2696
- if ( ( isUndefined ( maxPriority ) || maxPriority > directive . priority ) &&
2697
- directive . restrict . indexOf ( location ) !== - 1 ) {
2698
- if ( startAttrName ) {
2699
- directive = inherit ( directive , { $$start : startAttrName , $$end : endAttrName } ) ;
2700
- }
2701
- if ( ! directive . $$bindings ) {
2702
- var bindings = directive . $$bindings =
2703
- parseDirectiveBindings ( directive , directive . name ) ;
2704
- if ( isObject ( bindings . isolateScope ) ) {
2705
- directive . $$isolateBindings = bindings . isolateScope ;
2706
- }
2694
+ directive = directives [ i ] ;
2695
+ if ( ( isUndefined ( maxPriority ) || maxPriority > directive . priority ) &&
2696
+ directive . restrict . indexOf ( location ) !== - 1 ) {
2697
+ if ( startAttrName ) {
2698
+ directive = inherit ( directive , { $$start : startAttrName , $$end : endAttrName } ) ;
2699
+ }
2700
+ if ( ! directive . $$bindings ) {
2701
+ var bindings = directive . $$bindings =
2702
+ parseDirectiveBindings ( directive , directive . name ) ;
2703
+ if ( isObject ( bindings . isolateScope ) ) {
2704
+ directive . $$isolateBindings = bindings . isolateScope ;
2707
2705
}
2708
- tDirectives . push ( directive ) ;
2709
- match = directive ;
2710
2706
}
2711
- } catch ( e ) { $exceptionHandler ( e ) ; }
2707
+ tDirectives . push ( directive ) ;
2708
+ match = directive ;
2709
+ }
2712
2710
}
2713
2711
}
2714
2712
return match ;
0 commit comments