diff --git a/src/jqLite.js b/src/jqLite.js index b86196fba55f..74137f38deec 100644 --- a/src/jqLite.js +++ b/src/jqLite.js @@ -728,7 +728,7 @@ forEach({ } // http://jsperf.com/string-indexof-vs-split - var types = type.indexOf(' ') ? type.split(' ') : [type]; + var types = type.indexOf(' ') >= 0 ? type.split(' ') : [type]; var i = types.length; while (i--) {