Skip to content

Commit 8235e7b

Browse files
gibson042mgol
authored andcommitted
Types: Document lack of support for wrapped primitives
Fixes jquery#985 Closes jquery#986
1 parent d16d569 commit 8235e7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pages/Types.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
ol ul li { font-size: 1em !important; }
1010
ol ul { margin-left: 1.5em !important; }
1111
</style>
12-
<p>JavaScript provides several built-in datatypes. In addition to those, this page documents virtual types like Selectors, enhanced pseudo-types like Events and some concepts you need to know about Functions. If you want to study these concepts in depth, take a look at <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">MDN</a>.
12+
<p>This page documents data types appearing in jQuery function signatures, whether defined by JavaScript itself or further restricted by jQuery. Unless explicitly stated otherwise, jQuery functions require primitive values where applicable, and do not accept their Object-wrapped forms. If you want to study these concepts in depth, take a look at <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">MDN</a>.
1313
</p>
1414
<p>You should be able to try out most of the examples below by just copying them to your browser's JavaScript Console (Chrome, Safari with Develop menu activated, IE 8+) or <a href="http://www.getfirebug.com/">Firebug</a> console (<a href="https://www.mozilla.org/en-US/firefox/new/">Firefox</a>).
1515
</p>
@@ -104,7 +104,7 @@ <h2 id="Anything"> Anything </h2>
104104
</p>
105105

106106
<h2 id="String"> String </h2>
107-
<p>A string in JavaScript is an immutable object that contains none, one or many characters.
107+
<p>A string in JavaScript is an immutable primitive value that contains none, one or many characters.
108108
</p>
109109
<pre><code data-lang="javascript">"I'm a String in JavaScript!"
110110
'So am I!'
@@ -165,7 +165,7 @@ <h2 id="htmlString"> htmlString </h2>
165165
$( "<b>hello</b>wait<b>bye</b>" ).appendTo( "body" );
166166
</code></pre>
167167
<h2 id="Number"> Number </h2>
168-
<p>Numbers in JavaScript are double-precision 64-bit format IEEE 754 values. They are immutable, just as <a href="#String" title="">strings</a>. All operators common in c-based languages are available to work with numbers (+, -, *, /, %, =, +=, -=, *=, /=, ++, --).
168+
<p>Numbers in JavaScript are double-precision 64-bit format IEEE 754 values. They are immutable primitive values, just like <a href="#String" title="">strings</a>. All operators common in c-based languages are available to work with numbers (+, -, *, /, %, =, +=, -=, *=, /=, ++, --).
169169
</p>
170170
<pre><code data-lang="javascript">12
171171
3.543

0 commit comments

Comments
 (0)