aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrancesco Pontillo2013-08-31 11:48:11 +0200
committerBrian Ford2013-10-01 15:08:23 -0700
commit8e1276c011b33b90af47494dc5e76baf86468a5a (patch)
tree63ab29694fa90ee2797dd95397f9f5f61de5fdaf /src
parent6972596ce99f2a11ae07e65ebcb554cef1dd3240 (diff)
downloadangular.js-8e1276c011b33b90af47494dc5e76baf86468a5a.tar.bz2
fix($compile): allow interpolations for non-event handlers attrs
Fix wrong behaviour that didn't allow 'data-on' and 'on' element attributes to be interpolated by $compile. The regex now accepts any string beginning with 'on' and with at least one more English letter.
Diffstat (limited to 'src')
-rw-r--r--src/ng/compile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 040836f7..2aec8fcd 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -159,7 +159,7 @@ function $CompileProvider($provide) {
// Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes
// The assumption is that future DOM event attribute names will begin with
// 'on' and be composed of only English letters.
- var EVENT_HANDLER_ATTR_REGEXP = /^(on[a-z]*|formaction)$/;
+ var EVENT_HANDLER_ATTR_REGEXP = /^(on[a-z]+|formaction)$/;
/**
* @ngdoc function