Commit e9917ab8 authored by Brandon Aaron's avatar Brandon Aaron

Fix for passing jQuery constructor a DOM NodeList in Safari and an object or...

Fix for passing jQuery constructor a DOM NodeList in Safari and an object or embed HTMLElement in Firefox.
parent d6d33169
...@@ -31,7 +31,7 @@ window.undefined = window.undefined; ...@@ -31,7 +31,7 @@ window.undefined = window.undefined;
var jQuery = function(a,c) { var jQuery = function(a,c) {
// Shortcut for document ready (because $(document).each() is silly) // Shortcut for document ready (because $(document).each() is silly)
if ( a && typeof a == "function" && jQuery.fn.ready ) if ( a && typeof a == "function" && jQuery.fn.ready && !a.nodeType && a[0] == undefined ) // Safari reports typeof on DOM NodeLists as a function
return jQuery(document).ready(a); return jQuery(document).ready(a);
// Make sure that a selection was provided // Make sure that a selection was provided
......
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