File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2285,19 +2285,19 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2285
2285
startingTag ( node ) ) ;
2286
2286
}
2287
2287
2288
+ if ( EVENT_HANDLER_ATTR_REGEXP . test ( name ) ) {
2289
+ throw $compileMinErr ( 'nodomevents' ,
2290
+ "Interpolations for HTML DOM event attributes are disallowed. Please use the " +
2291
+ "ng- versions (such as ng-click instead of onclick) instead." ) ;
2292
+ }
2293
+
2288
2294
directives . push ( {
2289
2295
priority : 100 ,
2290
2296
compile : function ( ) {
2291
2297
return {
2292
2298
pre : function attrInterpolatePreLinkFn ( scope , element , attr ) {
2293
2299
var $$observers = ( attr . $$observers || ( attr . $$observers = { } ) ) ;
2294
2300
2295
- if ( EVENT_HANDLER_ATTR_REGEXP . test ( name ) ) {
2296
- throw $compileMinErr ( 'nodomevents' ,
2297
- "Interpolations for HTML DOM event attributes are disallowed. Please use the " +
2298
- "ng- versions (such as ng-click instead of onclick) instead." ) ;
2299
- }
2300
-
2301
2301
// If the attribute was removed, then we are done
2302
2302
if ( ! attr [ name ] ) {
2303
2303
return ;
You can’t perform that action at this time.
0 commit comments