Permalink
Browse files

Merge branch 'live-docs' of github.com:lsmith/yui3

  • Loading branch information...
2 parents d62b8a9 + f0bfbcf commit 99c399223de4de1391acc8747b3911f5ea8ec04f @lsmith lsmith committed Nov 23, 2011
Showing with 9 additions and 4 deletions.
  1. +9 −4 src/node/js/node-style.js
View
@@ -8,6 +8,7 @@
var methods = [
/**
* Returns the style's current value.
+ * Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method getStyle
* @for Node
* @param {String} attr The style attribute to retrieve.
@@ -17,17 +18,16 @@ var methods = [
/**
* 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
* @param {String} attr The style attribute to retrieve.
* @return {String} The computed value of the style property for the element.
*/
'getComputedStyle',
/**
- * Sets a style property of the node. Use CSS case (e.g. 'background-color')
- * for multi-word properties.
+ * Sets a style property of the node.
+ * Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method setStyle
* @param {String} attr The style attribute to set.
* @param {String|Number} val The value.
@@ -37,6 +37,7 @@ var methods = [
/**
* Sets multiple style properties on the node.
+ * Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method setStyles
* @param {Object} hash An object literal of property:value pairs.
* @chainable
@@ -46,6 +47,7 @@ var methods = [
Y.Node.importMethod(Y.DOM, methods);
/**
* Returns an array of values for each node.
+ * Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method getStyle
* @for NodeList
* @see Node.getStyle
@@ -55,6 +57,7 @@ Y.Node.importMethod(Y.DOM, methods);
/**
* Returns an array of the computed value for each node.
+ * Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method getComputedStyle
* @see Node.getComputedStyle
* @param {String} attr The style attribute to retrieve.
@@ -63,6 +66,7 @@ Y.Node.importMethod(Y.DOM, methods);
/**
* Sets a style property on each node.
+ * Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method setStyle
* @see Node.setStyle
* @param {String} attr The style attribute to set.
@@ -72,6 +76,7 @@ Y.Node.importMethod(Y.DOM, methods);
/**
* Sets multiple style properties on each node.
+ * Use camelCase (e.g. 'backgroundColor') for multi-word properties.
* @method setStyles
* @see Node.setStyles
* @param {Object} hash An object literal of property:value pairs.

0 comments on commit 99c3992

Please sign in to comment.