Skip to content

Commit

Permalink
Merge branch 'live-docs' of github.com:lsmith/yui3
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith committed Nov 23, 2011
2 parents d62b8a9 + f0bfbcf commit 99c3992
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/node/js/node-style.js
Expand Up @@ -8,6 +8,7 @@
var methods = [ var methods = [
/** /**
* Returns the style's current value. * Returns the style's current value.
* Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method getStyle * @method getStyle
* @for Node * @for Node
* @param {String} attr The style attribute to retrieve. * @param {String} attr The style attribute to retrieve.
Expand All @@ -17,17 +18,16 @@ var methods = [


/** /**
* Returns the computed value for the given style property. * Returns the computed value for the given style property.
* Use CSS case (e.g. 'background-color') for multi-word properties. * Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method getComputedStyle * @method getComputedStyle
* @param {String} attr The style attribute to retrieve. * @param {String} attr The style attribute to retrieve.
* @return {String} The computed value of the style property for the element. * @return {String} The computed value of the style property for the element.
*/ */
'getComputedStyle', 'getComputedStyle',


/** /**
* Sets a style property of the node. Use CSS case (e.g. 'background-color') * Sets a style property of the node.
* for multi-word properties. * Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method setStyle * @method setStyle
* @param {String} attr The style attribute to set. * @param {String} attr The style attribute to set.
* @param {String|Number} val The value. * @param {String|Number} val The value.
Expand All @@ -37,6 +37,7 @@ var methods = [


/** /**
* Sets multiple style properties on the node. * Sets multiple style properties on the node.
* Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method setStyles * @method setStyles
* @param {Object} hash An object literal of property:value pairs. * @param {Object} hash An object literal of property:value pairs.
* @chainable * @chainable
Expand All @@ -46,6 +47,7 @@ var methods = [
Y.Node.importMethod(Y.DOM, methods); Y.Node.importMethod(Y.DOM, methods);
/** /**
* Returns an array of values for each node. * Returns an array of values for each node.
* Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method getStyle * @method getStyle
* @for NodeList * @for NodeList
* @see Node.getStyle * @see Node.getStyle
Expand All @@ -55,6 +57,7 @@ Y.Node.importMethod(Y.DOM, methods);


/** /**
* Returns an array of the computed value for each node. * Returns an array of the computed value for each node.
* Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method getComputedStyle * @method getComputedStyle
* @see Node.getComputedStyle * @see Node.getComputedStyle
* @param {String} attr The style attribute to retrieve. * @param {String} attr The style attribute to retrieve.
Expand All @@ -63,6 +66,7 @@ Y.Node.importMethod(Y.DOM, methods);


/** /**
* Sets a style property on each node. * Sets a style property on each node.
* Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method setStyle * @method setStyle
* @see Node.setStyle * @see Node.setStyle
* @param {String} attr The style attribute to set. * @param {String} attr The style attribute to set.
Expand All @@ -72,6 +76,7 @@ Y.Node.importMethod(Y.DOM, methods);


/** /**
* Sets multiple style properties on each node. * Sets multiple style properties on each node.
* Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method setStyles * @method setStyles
* @see Node.setStyles * @see Node.setStyles
* @param {Object} hash An object literal of property:value pairs. * @param {Object} hash An object literal of property:value pairs.
Expand Down

0 comments on commit 99c3992

Please sign in to comment.