X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjquery%2Fjquery.js;h=d40335b8b79a8ff880e8492a485e36cc396a0110;hb=6ceecc520a2b521dedce47f83c954727299b6653;hp=a204992adf31e65c5754ec93bb95af1eef60d08f;hpb=0382a490f5e5ee781098981db050a23d4f2e5a36;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index a204992..d40335b 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -69,7 +69,7 @@ function jQuery(a,c) { } // Map over the $ in case of overwrite -if ( $ ) +if ( typeof $ != "undefined" ) jQuery._$ = $; // Map the jQuery namespace to the '$' one @@ -1025,6 +1025,7 @@ jQuery.extend({ odd: "i%2", // Child Checks + "nth-child": "jQuery.sibling(a,m[3]).cur", "first-child": "jQuery.sibling(a,0).cur", "last-child": "jQuery.sibling(a,0).last", "only-child": "jQuery.sibling(a).length==1", @@ -2383,7 +2384,7 @@ jQuery.macros = { * @param String expr An expression to filter the child Elements with * @cat DOM/Traversing */ - children: "a.childNodes" + children: "jQuery.sibling(a.firstChild)" }, each: { @@ -2549,7 +2550,7 @@ jQuery.macros = { * @cat DOM/Manipulation */ remove: function(a){ - if ( !a || jQuery.filter( [this], a ).r ) + if ( !a || jQuery.filter( a, [this] ).r ) this.parentNode.removeChild( this ); },