Skip to content

Commit

Permalink
arguments => parameters like in 70faaa6
Browse files Browse the repository at this point in the history
Parameters define the signature of a function.
Arguments is what a function is called with.
  • Loading branch information
arian committed Nov 3, 2012
1 parent eb62a9e commit 41ddde5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions doc/elements.html
Expand Up @@ -15,7 +15,7 @@
<a href="#use the built elements.js">use the built elements.js</a>
<a href="#module: elements" class="top">module: elements</a>
<a href="#exports">exports</a>
<a href="#arguments">arguments</a>
<a href="#parameters">parameters</a>
<a href="#syntax">syntax</a>
<a href="#selector engine integration">selector engine integration</a>
<a href="#module: zen" class="top">module: zen</a>
Expand Down Expand Up @@ -142,7 +142,7 @@ <h2><a href="#exports" name="exports">exports</a></h2>
<li>if the internal collection is empty, you will get <code>null</code> instead of an empty
elements instance.</li>
</ol>
<h2><a href="#arguments" name="arguments">arguments</a></h2>
<h2><a href="#parameters" name="parameters">parameters</a></h2>

<ol>
<li>(<em>node</em> / <em>collection</em> / <em>string</em> / <em>array</em>) - an dom node, a collection of
Expand Down Expand Up @@ -218,7 +218,7 @@ <h2><a href="#method: attribute" name="method: attribute">method: attribute</a><
otherwise returns the current elements instance.</p>
<h3>syntax</h3>
<pre><code class="javascript">element.attribute(name[, value])</code></pre>
<h3>arguments</h3>
<h3>parameters</h3>

<ol>
<li>name (<em>string</em>) The name of the attribute or property</li>
Expand Down Expand Up @@ -278,7 +278,7 @@ <h2><a href="#method: hasClass" name="method: hasClass">method: hasClass</a></h2
<code>true</code>, or <code>false</code>.</p>
<h3>sample</h3>
<pre><code class="javascript"><span class="keyword">var</span> result = myElement.hasClass(className)</code></pre>
<h3>arguments</h3>
<h3>parameters</h3>

<ol>
<li>className - (<em>string</em>) The class name to test.</li>
Expand All @@ -292,7 +292,7 @@ <h2><a href="#method: addClass" name="method: addClass">method: addClass</a></h2
. Returns the elements instance.</p>
<h3>syntax</h3>
<pre><code class="javascript">myElement.addClass(className)</code></pre>
<h3>arguments</h3>
<h3>parameters</h3>

<ol>
<li>className - (<em>string</em>) The class name to add.</li>
Expand All @@ -307,7 +307,7 @@ <h2><a href="#method: removeClass" name="method: removeClass">method: removeClas
Returns the elements instance.</p>
<h3>syntax</h3>
<pre><code class="javascript">myElement.removeClass(className)</code></pre>
<h3>arguments</h3>
<h3>parameters</h3>

<ol>
<li>className - (<em>string</em>) The class name to remove.</li>
Expand All @@ -332,7 +332,7 @@ <h2><a href="#method: html" name="method: html">method: html</a></h2>
<p>Set or get HTML of an element.</p>
<h3>syntax</h3>
<pre><code class="javascript">myElement.html([html])</code></pre>
<h3>arguments</h3>
<h3>parameters</h3>

<ol>
<li>html - (<em>string</em>) If the <code>html</code> parameter is set, it will set the HTML in the
Expand Down
12 changes: 6 additions & 6 deletions doc/elements.md
Expand Up @@ -88,7 +88,7 @@ Notes:
2. if the internal collection is empty, you will get `null` instead of an empty
elements instance.

## arguments
## parameters

1. (*node* / *collection* / *string* / *array*) - an dom node, a collection of
nodes, a string representing a css selector (requires slick or any other
Expand Down Expand Up @@ -195,7 +195,7 @@ otherwise returns the current elements instance.
element.attribute(name[, value])
```

### arguments
### parameters

1. name (*string*) The name of the attribute or property
2. value (*string*, optional) If the `value` parameter is set, this method will
Expand Down Expand Up @@ -269,7 +269,7 @@ Tests the element to see if it has the passed in className. Returns the boolean
var result = myElement.hasClass(className)
```

### arguments
### parameters

1. className - (*string*) The class name to test.

Expand All @@ -295,7 +295,7 @@ Adds the passed in class to the element, if the element doesn't already have it
myElement.addClass(className)
```

### arguments
### parameters

1. className - (*string*) The class name to add.

Expand Down Expand Up @@ -325,7 +325,7 @@ Returns the elements instance.
myElement.removeClass(className)
```

### arguments
### parameters

1. className - (*string*) The class name to remove.

Expand Down Expand Up @@ -380,7 +380,7 @@ Set or get HTML of an element.
myElement.html([html])
```

### arguments
### parameters

1. html - (*string*) If the `html` parameter is set, it will set the HTML in the
element, otherwise it will return the current HTML in the element. Returns the
Expand Down

0 comments on commit 41ddde5

Please sign in to comment.