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

Commit 4fed5d8

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/sniffer.js

+1-1
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)