Skip to content

Commit

Permalink
jQuery.isEmptyObject: Specify no *enumerable* properties
Browse files Browse the repository at this point in the history
Fixes #51
  • Loading branch information
kswedberg committed Sep 3, 2012
1 parent 0828702 commit 5edb855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entries/jQuery.isEmptyObject.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<desc>The object that will be checked to see if it's empty.</desc>
</argument>
</signature>
<desc>Check to see if an object is empty (contains no properties).</desc>
<desc>Check to see if an object is empty (contains no enumerable properties).</desc>
<longdesc>
<p>As of jQuery 1.4 this method checks both properties on the object itself and properties inherited from prototypes (in that it doesn't use hasOwnProperty). The argument should always be a plain JavaScript <code>Object</code> as other types of object (DOM elements, primitive strings/numbers, host objects) may not give consistent results across browsers. To determine if an object is a plain JavaScript object, use <a href="http://api.jquery.com/jQuery.isPlainObject"><code>$.isPlainObject()</code></a></p>
</longdesc>
Expand All @@ -19,4 +19,4 @@
</example>
<category slug="utilities"/>
<category slug="version/1.4"/>
</entry>
</entry>

0 comments on commit 5edb855

Please sign in to comment.