Skip to content

Commit a232f00

Browse files
jugglinmikeAurelioDeRosa
authored andcommitted
attr: Document attr(key, null) to remove attribute
Fixes gh-523 Closes gh-853
1 parent b49f844 commit a232f00

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

entries/attr.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ The title of the emphasis is:<div></div>
147147
<argument name="value">
148148
<type name="String"/>
149149
<type name="Number"/>
150-
<desc>A value to set for the attribute.</desc>
150+
<type name="Null"/>
151+
<desc>A value to set for the attribute. If <code>null</code>, the specified attribute will be removed (as in <a href="/removeAttr/"><code>.removeAttr()</code></a>).</desc>
151152
</argument>
152153
</signature>
153154
<signature>

pages/Types.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,9 @@ <h2 id="PlainObject"> PlainObject </h2>
432432
jQuery.isPlainObject( o ); // true
433433
</code></pre>
434434

435+
<h2 id="Null">Null</h2>
436+
<p>The <code>null</code> keyword is a JavaScript literal that is commonly used to express the absence of an intentional value.</p>
437+
435438
<h2 id="Date"> Date </h2>
436439
<p>The Date type is a JavaScript object that represents a single moment in time. Date objects are instantiated using their constructor function, which by default creates an object that represents the current date and time.
437440
</p>

0 commit comments

Comments
 (0)