diff --git a/src/ng/sniffer.js b/src/ng/sniffer.js index 0c5ac51d2..5bc32fdf1 100644 --- a/src/ng/sniffer.js +++ b/src/ng/sniffer.js @@ -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; } }