Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 99c399223de4de1391acc8747b3911f5ea8ec04f 2 parents d62b8a9 + f0bfbcf
@lsmith lsmith authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 src/node/js/node-style.js
View
13 src/node/js/node-style.js
@@ -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,8 +18,7 @@ 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.
@@ -26,8 +26,8 @@ var methods = [
'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.
Please sign in to comment.
Something went wrong with that request. Please try again.