Skip to content
Permalink
Browse files

Rolling back Rev 1892

  • Loading branch information
brandonaaron committed May 23, 2007
1 parent 79b3ff0 commit 970eb0f020b7a57f313e438490b4018c5569f8b3
Showing with 2 additions and 5 deletions.
  1. +1 −4 src/jquery/coreTest.js
  2. +1 −1 src/jquery/jquery.js
@@ -12,7 +12,7 @@ test("Basic requirements", function() {
});

test("$()", function() {
expect(4);
expect(3);

var main = $("#main");
isSet( $("div p", main).get(), q("sndp", "en", "sap"), "Basic selector with jQuery object as context" );
@@ -32,9 +32,6 @@ test("$()", function() {
pass = false;
}
ok( pass, "$('<tag>') needs optional document parameter to ease cross-frame DOM wrangling, see #968" );

var form = $("form")[0];
equals( 15, $(form.elements).size(), "$(form.elements)" );
});

test("isFunction", function() {
@@ -176,7 +176,7 @@ jQuery.fn = jQuery.prototype = {

// HANDLE: $(arraylike)
// Watch for when an array-like object is passed as the selector
(a.jquery || a.length && a != window && (!a.nodeType || (jQuery.browser.msie && a.elements)) && a[0] != undefined && a[0].nodeType) && jQuery.makeArray( a ) ||
(a.jquery || a.length && a != window && !a.nodeType && a[0] != undefined && a[0].nodeType) && jQuery.makeArray( a ) ||

// HANDLE: $(*)
[ a ] );

0 comments on commit 970eb0f

Please sign in to comment.
You can’t perform that action at this time.