Skip to content

Commit 4fed5d8

Browse files
marijaselakovicNarretz
authored andcommitted
refactor($sniffer): avoid unnecessary call to substring
1 parent f375684 commit 4fed5d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ng/sniffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function $SnifferProvider() {
3636
for (var prop in bodyStyle) {
3737
if (match = vendorRegex.exec(prop)) {
3838
vendorPrefix = match[0];
39-
vendorPrefix = vendorPrefix.substr(0, 1).toUpperCase() + vendorPrefix.substr(1);
39+
vendorPrefix = vendorPrefix[0].toUpperCase() + vendorPrefix.substr(1);
4040
break;
4141
}
4242
}

0 commit comments

Comments
 (0)