aboutsummaryrefslogtreecommitdiffstats
path: root/src/jquery
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-01-06 22:34:12 +0000
committerJohn Resig <jeresig@gmail.com>2007-01-06 22:34:12 +0000
commit458d427c0e4af4502e14400110b5327aa2513781 (patch)
treeed7f32f3e3513810e32c7443555ff593aa80ca25 /src/jquery
parentab0287681f790ad36beb5e35160bedfe181e30f7 (diff)
downloadjquery-458d427c0e4af4502e14400110b5327aa2513781.tar.gz
jquery-458d427c0e4af4502e14400110b5327aa2513781.zip
Fixed the docs for noConflict, fixed a bug with pager.
Diffstat (limited to 'src/jquery')
-rw-r--r--src/jquery/jquery.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 893a397d7..3b0f82e31 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -1130,28 +1130,32 @@ jQuery.extend({
* using the 'jQuery' variable. For example, where you used to do
* $("div p"), you now must do jQuery("div p").
*
- * @example $.noConflict();
+ * @example jQuery.noConflict();
+ * // Do something with jQuery
+ * jQuery("div p").hide();
+ * // Do something with another library's $()
+ * $("content").style.display = 'none';
* @desc Maps the original object that was referenced by $ back to $
*
- * @example $.noConflict();
+ * @example jQuery.noConflict();
* (function($) {
* $(function() {
* // more code using $ as alias to jQuery
* });
* })(jQuery);
- * // other code using $ as an alias to the original implementation (not jQuery)
+ * // other code using $ as an alias to the other library
* @desc Reverts the $ alias and then creates and executes a
* function to provide the $ as a jQuery alias inside the functions
* scope. Inside the function the original $ object is not available.
* This works well for most plugins that don't rely on any other library.
*
*
- * @name noConflict
+ * @name $.noConflict
* @type undefined
* @cat Core
*/
noConflict: function() {
- if(jQuery._$)
+ if ( jQuery._$ )
$ = jQuery._$;
},