|
188 | 188 | *
|
189 | 189 | * ##### Examples
|
190 | 190 | *
|
191 |
| - * Hide the element |
| 191 | + * Hide the element: |
192 | 192 | *
|
193 | 193 | * $(element).hide();
|
194 | 194 | *
|
195 | 195 | * Return an [[Enumerable]] of all descendant nodes of the element with the id
|
196 |
| - * "article" |
| 196 | + * "articles": |
197 | 197 | *
|
198 | 198 | * $('articles').descendants();
|
199 | 199 | **/
|
|
246 | 246 |
|
247 | 247 | methods.inspect = inspect;
|
248 | 248 |
|
249 |
| - // VISIBLITY |
| 249 | + // VISIBILITY |
250 | 250 |
|
251 | 251 | /**
|
252 | 252 | * Element.visible(@element) -> Boolean
|
|
307 | 307 | *
|
308 | 308 | * ##### Examples
|
309 | 309 | *
|
310 |
| - * <div id="welcome-message"></div> |
311 |
| - * <div id="error-message" style="display:none;"></div> |
| 310 | + * <div id="welcome-message">Welcome</div> |
| 311 | + * <div id="error-message" style="display:none;">Error</div> |
312 | 312 | *
|
313 | 313 | * $('welcome-message').toggle();
|
314 | 314 | * // -> Element (and hides div#welcome-message)
|
315 | 315 | *
|
316 | 316 | * $('error-message').toggle();
|
317 | 317 | * // -> Element (and displays div#error-message)
|
318 | 318 | *
|
319 |
| - * $('error-message).toggle(true); |
| 319 | + * $('error-message').toggle(true); |
320 | 320 | * // -> Element (and displays div#error-message, no matter what its
|
321 | 321 | * // previous state)
|
322 | 322 | *
|
|
2472 | 2472 | * $('mutsu').removeClassName('food');
|
2473 | 2473 | * // -> Element
|
2474 | 2474 | *
|
2475 |
| - * $('mutsu').classNames; |
| 2475 | + * $('mutsu').className; |
2476 | 2476 | * // -> 'apple fruit'
|
2477 | 2477 | **/
|
2478 | 2478 | function removeClassName(element, className) {
|
|
2829 | 2829 | * 1. Reading and writing the CSS `opacity` property works exactly like
|
2830 | 2830 | * calling [[Element.getOpacity]] and [[Element.setOpacity]]
|
2831 | 2831 | * respectively. This lets us pretend that IE didn't have a
|
2832 |
| - * properietary way to set opacity in versions 6-7. |
| 2832 | + * proprietary way to set opacity in versions 6-7. |
2833 | 2833 | * 2. Browsers disagree on how to report certain properties of hidden
|
2834 | 2834 | * elements (i.e., `display: none`). Opera, for instance, says that a
|
2835 | 2835 | * hidden element has a `width` of `0px`. It's an arguable point, but
|
|
3046 | 3046 |
|
3047 | 3047 | /**
|
3048 | 3048 | * Element.store(@element, key, value) -> Element
|
| 3049 | + * Element.store(@element, object) -> Element |
3049 | 3050 | *
|
3050 |
| - * Stores a key/value pair of custom metadata on the element. |
| 3051 | + * Stores a key/value pair of custom metadata on the element. If it is |
| 3052 | + * given one argument instead of two, it treats that argument as an object |
| 3053 | + * of key/value pairs, and stores _each_ pair as element metadata. |
3051 | 3054 | *
|
3052 | 3055 | * The metadata can later be retrieved with [[Element.retrieve]].
|
3053 | 3056 | **/
|
|
0 commit comments