Commit 679536ee authored by Mike Sidorov's avatar Mike Sidorov Committed by Timmy Willison

charAt -> string indexing. Close gh-1359.

parent 4228905b
...@@ -23,7 +23,7 @@ var rootjQuery, ...@@ -23,7 +23,7 @@ var rootjQuery,
// Handle HTML strings // Handle HTML strings
if ( typeof selector === "string" ) { if ( typeof selector === "string" ) {
if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { if ( selector[0] === "<" && selector[ selector.length - 1 ] === ">" && selector.length >= 3 ) {
// Assume that strings that start and end with <> are HTML and skip the regex check // Assume that strings that start and end with <> are HTML and skip the regex check
match = [ null, selector, null ]; match = [ null, selector, null ];
......
...@@ -46,7 +46,7 @@ function vendorPropName( style, name ) { ...@@ -46,7 +46,7 @@ function vendorPropName( style, name ) {
} }
// check for vendor prefixed names // check for vendor prefixed names
var capName = name.charAt(0).toUpperCase() + name.slice(1), var capName = name[0].toUpperCase() + name.slice(1),
origName = name, origName = name,
i = cssPrefixes.length; i = cssPrefixes.length;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment