calling $() with new String()
- $(new String("button")).get();
- /* returns
- b,u,t,t,o,n
- */
This (ridiculous?) $() call is it seems easy to avoid by replacing (jQuery.1.9.1.js line 132):
- // Handle HTML strings
- if ( typeof selector === "string" ) {
With this :
- // Handle HTML strings
- if ( jQuery.type(selector) === "string" ) {
I can't think of any other use case for this change to be perhaps necessary. Please discuss.
--DBJ