* @name attr
* @type Object
* @param String name The name of the property to access.
- * @cat DOM
+ * @cat DOM/Attributes
*/
/**
* @name attr
* @type jQuery
* @param Map properties Key/value pairs to set as object properties.
- * @cat DOM
+ * @cat DOM/Attributes
*/
/**
* @type jQuery
* @param String key The name of the property to set.
* @param Object value The value to set the property to.
- * @cat DOM
+ * @cat DOM/Attributes
*/
attr: function( key, value, type ) {
// Check to see if we're setting style values
*
* @name text
* @type String
- * @cat DOM
+ * @cat DOM/Attributes
*/
/**
* @name text
* @type String
* @param String val The text value to set the contents of the element to.
- * @cat DOM
+ * @cat DOM/Attributes
*/
text: function(e) {
// A surprisingly high number of people expect the
* @param Object prop1 The object that will be merged into the first.
* @param Object propN (optional) More objects to merge into the first
* @type Object
- * @cat Javascript
+ * @cat JavaScript
*/
jQuery.extend = jQuery.fn.extend = function() {
// copy reference to target object
* 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._$;
},
* @param Object obj The object, or array, to iterate over.
* @param Function fn The function that will be executed on every object.
* @type Object
- * @cat Javascript
+ * @cat JavaScript
*/
// args is for internal usage only
each: function( obj, fn, args ) {
* @name $.trim
* @type String
* @param String str The string to trim.
- * @cat Javascript
+ * @cat JavaScript
*/
trim: function(t){
return t.replace(/^\s+|\s+$/g, "");
* @type Array
* @param Array first The first array to merge.
* @param Array second The second array to merge.
- * @cat Javascript
+ * @cat JavaScript
*/
merge: function(first, second) {
var r = [].slice.call( first, 0 );
* @param Array array The Array to find items in.
* @param Function fn The function to process each item against.
* @param Boolean inv Invert the selection - select the opposite of the function.
- * @cat Javascript
+ * @cat JavaScript
*/
grep: function(elems, fn, inv) {
// If a string is passed in for the function, make a function
* @type Array
* @param Array array The Array to translate.
* @param Function fn The function to process each item against.
- * @cat Javascript
+ * @cat JavaScript
*/
map: function(elems, fn) {
// If a string is passed in for the function, make a function
* @property
* @name $.browser
* @type Boolean
- * @cat Javascript
+ * @cat JavaScript
*/
/*
* @property
* @name $.boxModel
* @type Boolean
- * @cat Javascript
+ * @cat JavaScript
*/
new function() {
var b = navigator.userAgent.toLowerCase();
* @name removeAttr
* @type jQuery
* @param String name The name of the attribute to remove.
- * @cat DOM
+ * @cat DOM/Attributes
*/
/**
* @name addClass
* @type jQuery
* @param String class A CSS class to add to the elements
- * @cat DOM
+ * @cat DOM/Attributes
* @see removeClass(String)
*/
* @name removeClass
* @type jQuery
* @param String class (optional) A CSS class to remove from the elements
- * @cat DOM
+ * @cat DOM/Attributes
* @see addClass(String)
*/
* @name toggleClass
* @type jQuery
* @param String class A CSS class with which to toggle the elements
- * @cat DOM
+ * @cat DOM/Attributes
*/
/**