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

refactor(ngAria): DRY camelCase function #10336

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/ngAria/aria.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,6 @@ function $AriaProvider() {
config = angular.extend(config, newConfig);
};

function camelCase(input) {
return input.replace(/-./g, function(letter, pos) {
return letter[1].toUpperCase();
});
}


function watchExpr(attrName, ariaAttr, negate) {
var ariaCamelName = camelCase(ariaAttr);
return function(scope, elem, attr) {
Expand Down