Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 325f609

Browse files
committed
refactor(ngAria): DRY camelcase method
1 parent 0c4f9fa commit 325f609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngAria/aria.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ function $AriaProvider() {
117117

118118

119119
function watchExpr(attrName, ariaAttr, negate) {
120-
var ariaCamelName = camelCase(ariaAttr);
121120
return function(scope, elem, attr) {
121+
var ariaCamelName = attr.$normalize(ariaAttr);
122122
if (config[ariaCamelName] && !attr[ariaCamelName]) {
123123
scope.$watch(attr[attrName], function(boolVal) {
124124
if (negate) {

0 commit comments

Comments
 (0)