Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed Options type.

  • Loading branch information...
commit ffb17e2f0148b091f22070b90944e807cb3255a8 1 parent 1ee46fa
@scottgonzalez scottgonzalez authored
View
2  entries/animate.xml
@@ -16,7 +16,7 @@
<argument name="properties" type="PlainObject">
<desc>A map of CSS properties that the animation will move toward.</desc>
</argument>
- <argument name="options" type="Options">
+ <argument name="options" type="PlainObject">
<desc>A map of additional options to pass to the method.</desc>
</argument>
</signature>
View
2  entries/fadeIn.xml
@@ -13,7 +13,7 @@
</signature>
<signature>
<added>1.0</added>
- <argument name="options" type="Options">
+ <argument name="options" type="PlainObject">
<desc>A map of additional options to pass to the method.</desc>
</argument>
</signature>
View
2  entries/fadeOut.xml
@@ -13,7 +13,7 @@
</signature>
<signature>
<added>1.0</added>
- <argument name="options" type="Options">
+ <argument name="options" type="PlainObject">
<desc>A map of additional options to pass to the method.</desc>
</argument>
</signature>
View
2  entries/fadeToggle.xml
@@ -16,7 +16,7 @@
</signature>
<signature>
<added>1.4.4</added>
- <argument name="options" type="Options">
+ <argument name="options" type="PlainObject">
<desc>A map of additional options to pass to the method.</desc>
</argument>
</signature>
View
2  entries/hide.xml
@@ -16,7 +16,7 @@
</signature>
<signature>
<added>1.0</added>
- <argument name="options" type="Options">
+ <argument name="options" type="PlainObject">
<desc>A map of additional options to pass to the method.</desc>
</argument>
</signature>
View
2  entries/jQuery.ajaxSetup.xml
@@ -3,7 +3,7 @@
<title>jQuery.ajaxSetup()</title>
<signature>
<added>1.1</added>
- <argument name="options" type="Options">
+ <argument name="options" type="PlainObject">
<desc>A set of key/value pairs that configure the default Ajax request. All options are optional. </desc>
</argument>
</signature>
View
2  entries/show.xml
@@ -16,7 +16,7 @@
</signature>
<signature>
<added>1.0</added>
- <argument name="options" type="Options">
+ <argument name="options" type="PlainObject">
<desc>A map of additional options to pass to the method.</desc>
</argument>
</signature>
View
2  entries/slideDown.xml
@@ -13,7 +13,7 @@
</signature>
<signature>
<added>1.0</added>
- <argument name="options" type="Options">
+ <argument name="options" type="PlainObject">
<desc>A map of additional options to pass to the method.</desc>
</argument>
</signature>
View
2  entries/slideToggle.xml
@@ -13,7 +13,7 @@
</signature>
<signature>
<added>1.0</added>
- <argument name="options" type="Options">
+ <argument name="options" type="PlainObject">
<desc>A map of additional options to pass to the method.</desc>
</argument>
</signature>
View
2  entries/slideUp.xml
@@ -13,7 +13,7 @@
</signature>
<signature>
<added>1.0</added>
- <argument name="options" type="Options">
+ <argument name="options" type="PlainObject">
<desc>A map of additional options to pass to the method.</desc>
</argument>
</signature>
View
2  entries/toggle.xml
@@ -13,7 +13,7 @@
</signature>
<signature>
<added>1.0</added>
- <argument name="options" type="Options">
+ <argument name="options" type="PlainObject">
<desc>A map of additional options to pass to the method.</desc>
</argument>
</signature>
View
3  entries2html.xsl
@@ -126,9 +126,6 @@
</xsl:if>
</xsl:when>
<xsl:otherwise>
- <xsl:if test="$typename = 'Options'">
- <xsl:variable name="typename">PlainObject</xsl:variable>
- </xsl:if>
<!-- not function - just display typename -->
<a href="http://api.jquery.com/Types#{$typename}"><xsl:value-of select="$typename" /></a>
</xsl:otherwise>
View
21 pages/Types.html
@@ -58,7 +58,6 @@
<li class="toclevel-2"><a href="#Prototype"><span class="toctext">Prototype</span></a></li>
</ul>
</li>
-<li class="toclevel-1"><a href="#Options"><span class="toctext">Options</span></a></li>
<li class="toclevel-1"><a href="#Array"><span class="toctext">Array</span></a>
<ul>
<li class="toclevel-2"><a href="#Iteration_2"><span class="toctext">Iteration</span></a></li>
@@ -215,13 +214,6 @@
<pre><code data-lang="javascript">if ( true ) console.log( "always!" )
if ( false ) console.log( "never!" )
</code></pre>
-<p>When an <a href="#Options" title="">option</a> is specified as a boolean, it often looks like this:
-</p>
-<pre><code data-lang="javascript">$( "..." ).somePlugin({
- hideOnStartup: true,
- onlyOnce: false
-});
-</code></pre>
<a name="Object"></a><h2> Object </h2>
<p>Everything in JavaScript is an object, though some are more objective (haha). The easiest way to create an object is the object literal:
</p>
@@ -297,19 +289,6 @@
(This example needs clarification: how does it modify the prototype when the word "prototype" doesn't appear anywhere? The implication is that form.fn is simply an alias for form.prototype, but if that's the case then it should be explained.&nbsp;:-?)
</p><p>In javascript:the definitive guide 5 edition,dont add attibute to Object.prototype
</p>
-<a name="Options"></a><h2> Options </h2>
-<p>Options in jQuery are plain JavaScript objects. Whenever Options is mentioned as a type, that object and also all of its properties should be optional. There are exceptions where at least one option is required. jQuery's most prominent use of Options is its <a href="http://docs.jquery.com/Ajax/jQuery.ajax" title="Ajax/jQuery.ajax">AJAX</a>-method. Nearly all jQuery plugins provide an Options-based API: They work without any configuration, but allow users to specify whatever customization they need.
-</p><p>Let's look at an example from the form plugin. It allows you to submit a form via AJAX with this simple line of code:
-</p>
-<pre><code data-lang="javascript">$( "#myform" ).ajaxForm();
-</code></pre>
-<p>In that mode, it uses the form's action-attribute as the AJAX-URL and the form's method-attribute to determine whether to GET or POST the form. You can override both defaults by specifying them as options:
-</p>
-<pre><code data-lang="javascript">$( "#myform" ).ajaxForm({
- url: "mypage.php",
- type: "POST"
-});
-</code></pre>
<a name="Array"></a><h2> Array </h2>
<p>Arrays in JavaScript are mutable lists with a few built-in methods. You can define arrays using the array literal:
</p>
Please sign in to comment.
Something went wrong with that request. Please try again.