refactor($sniffer): avoid unnecessary call to substring

This commit is contained in:
marija
2016-02-05 15:51:27 +01:00
committed by Martin Staffa
parent f37568499e
commit 4fed5d873c
+1 -1
View File
@@ -36,7 +36,7 @@ function $SnifferProvider() {
for (var prop in bodyStyle) {
if (match = vendorRegex.exec(prop)) {
vendorPrefix = match[0];
vendorPrefix = vendorPrefix.substr(0, 1).toUpperCase() + vendorPrefix.substr(1);
vendorPrefix = vendorPrefix[0].toUpperCase() + vendorPrefix.substr(1);
break;
}
}