@@ -2534,24 +2534,22 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2534
2534
if ( hasDirectives . hasOwnProperty ( name ) ) {
2535
2535
for ( var directive , directives = $injector . get ( name + Suffix ) ,
2536
2536
i = 0 , ii = directives . length ; i < ii ; i ++ ) {
2537
- try {
2538
- directive = directives [ i ] ;
2539
- if ( ( isUndefined ( maxPriority ) || maxPriority > directive . priority ) &&
2540
- directive . restrict . indexOf ( location ) != - 1 ) {
2541
- if ( startAttrName ) {
2542
- directive = inherit ( directive , { $$start : startAttrName , $$end : endAttrName } ) ;
2543
- }
2544
- if ( ! directive . $$bindings ) {
2545
- var bindings = directive . $$bindings =
2546
- parseDirectiveBindings ( directive , directive . name ) ;
2547
- if ( isObject ( bindings . isolateScope ) ) {
2548
- directive . $$isolateBindings = bindings . isolateScope ;
2549
- }
2537
+ directive = directives [ i ] ;
2538
+ if ( ( isUndefined ( maxPriority ) || maxPriority > directive . priority ) &&
2539
+ directive . restrict . indexOf ( location ) != - 1 ) {
2540
+ if ( startAttrName ) {
2541
+ directive = inherit ( directive , { $$start : startAttrName , $$end : endAttrName } ) ;
2542
+ }
2543
+ if ( ! directive . $$bindings ) {
2544
+ var bindings = directive . $$bindings =
2545
+ parseDirectiveBindings ( directive , directive . name ) ;
2546
+ if ( isObject ( bindings . isolateScope ) ) {
2547
+ directive . $$isolateBindings = bindings . isolateScope ;
2550
2548
}
2551
- tDirectives . push ( directive ) ;
2552
- match = directive ;
2553
2549
}
2554
- } catch ( e ) { $exceptionHandler ( e ) ; }
2550
+ tDirectives . push ( directive ) ;
2551
+ match = directive ;
2552
+ }
2555
2553
}
2556
2554
}
2557
2555
return match ;
0 commit comments