X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=115ee7f2d70274f81f43ae81829dde825fe089c3;hb=c0e4280282d03a449caaf87d5a6bfe151a874796;hp=63d795c0c81724ffa59beafae78d79765e9af5d2;hpb=48ec10044f011ccfe9bd232d629682b59cccbd97;p=jquery.git
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 63d795c..115ee7f 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
@@ -193,7 +193,15 @@ jQuery.fn = jQuery.prototype = {
* argument representing the position of the element in the matched
* set.
*
- * @example $("img").each(function(){ this.src = "test.jpg"; });
+ * @example $("img").each(function(){
+ * this.src = "test.jpg";
+ * });
+ * @before
+ * @result
+ *
+ * @example $("img").each(function(i){
+ * alert( "Image #" + i + " is " + this );
+ * });
* @before
* @result
*
@@ -629,6 +637,7 @@ jQuery.fn = jQuery.prototype = {
* @example $("p").not("#selected")
* @before
Hello
Hello Again
* @result [Hello
] + * @test cmpOK($("#main > p#ap > a").not("#google").length, "==", 2, ".not") * * @name not * @type jQuery @@ -666,7 +675,7 @@ jQuery.fn = jQuery.prototype = { * @name add * @type jQuery * @param ArrayHello
Hello AgainHello
Hello Again