aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-01-11 03:57:19 +0000
committerJohn Resig <jeresig@gmail.com>2007-01-11 03:57:19 +0000
commit07aa989ce912e2bcdee79074e119599aa5eb72f6 (patch)
tree765ad4961cd27b2fa8141ab6f26eef58ceea60d4
parentc69047213514549551f3f612968bc669561e17c5 (diff)
downloadjquery-07aa989ce912e2bcdee79074e119599aa5eb72f6.tar.gz
jquery-07aa989ce912e2bcdee79074e119599aa5eb72f6.zip
Fixed the Safari crashing bug. So much hate.
-rw-r--r--src/jquery/jquery.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 71485b083..dbec38f54 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -1383,7 +1383,7 @@ jQuery.extend({
clean: function(a) {
var r = [];
-
+
for ( var i = 0, al = a.length; i < al; i++ ) {
var arg = a[i];
@@ -1436,7 +1436,7 @@ jQuery.extend({
arg = div.childNodes;
}
- if ( arg.nodeType )
+ if ( arg[0] == undefined )
r.push( arg );
else
r = jQuery.merge( r, arg );