This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -2242,17 +2242,15 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2242
2242
if ( hasDirectives . hasOwnProperty ( name ) ) {
2243
2243
for ( var directive , directives = $injector . get ( name + Suffix ) ,
2244
2244
i = 0 , ii = directives . length ; i < ii ; i ++ ) {
2245
- try {
2246
- directive = directives [ i ] ;
2247
- if ( ( isUndefined ( maxPriority ) || maxPriority > directive . priority ) &&
2248
- directive . restrict . indexOf ( location ) != - 1 ) {
2249
- if ( startAttrName ) {
2250
- directive = inherit ( directive , { $$start : startAttrName , $$end : endAttrName } ) ;
2251
- }
2252
- tDirectives . push ( directive ) ;
2253
- match = directive ;
2245
+ directive = directives [ i ] ;
2246
+ if ( ( isUndefined ( maxPriority ) || maxPriority > directive . priority ) &&
2247
+ directive . restrict . indexOf ( location ) != - 1 ) {
2248
+ if ( startAttrName ) {
2249
+ directive = inherit ( directive , { $$start : startAttrName , $$end : endAttrName } ) ;
2254
2250
}
2255
- } catch ( e ) { $exceptionHandler ( e ) ; }
2251
+ tDirectives . push ( directive ) ;
2252
+ match = directive ;
2253
+ }
2256
2254
}
2257
2255
}
2258
2256
return match ;
You can’t perform that action at this time.
0 commit comments