Skip to content

Commit 6f791c9

Browse files
committed
Fix deprecation notices for jQuery.boxModel(), jQuery.sub(), .size()
Fixes #88
1 parent 557e358 commit 6f791c9

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

entries/jQuery.boxModel.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0"?>
22
<entry type="property" name="jQuery.boxModel" return="Boolean">
33
<title>jQuery.boxModel</title>
4+
<deprecated>1.3</deprecated>
45
<signature>
56
<added>1.0</added>
67
</signature>
@@ -28,4 +29,4 @@ $("p").html("The box model for this iframe is: <span>" +
2829
<category slug="deprecated"/>
2930
<category slug="utilities"/>
3031
<category slug="version/1.0"/>
31-
</entry>
32+
</entry>

entries/jQuery.sub.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0"?>
22
<entry type="method" name="jQuery.sub" return="jQuery">
33
<title>jQuery.sub()</title>
4+
<deprecated>1.7</deprecated>
45
<signature>
56
<added>1.5</added>
6-
<deprecated>1.7</deprecated>
77
</signature>
88
<desc>Creates a new copy of jQuery whose properties and methods can be modified without affecting the original jQuery object.</desc>
99
<longdesc>
@@ -96,4 +96,4 @@ $(document).ready(function() {
9696
<category slug="core"/>
9797
<category slug="deprecated"/>
9898
<category slug="version/1.5"/>
99-
</entry>
99+
</entry>

entries/size.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<?xml version="1.0"?>
2-
<entry type="method" name="size" return="Number">
2+
<entry type="method" name="size" return="Number" deprecated="1.8">
33
<title>.size()</title>
44
<signature>
55
<added>1.0</added>
66
</signature>
77
<desc>Return the number of elements in the jQuery object.</desc>
88
<longdesc>
9+
<p>The <code>.size()</code> method is deprecated as of jQuery 1.8. Use the <code><a href="/length/">.length</a></code> property instead.</p>
10+
911
<p>The <code>.size()</code> method is functionally equivalent to the <code><a href="http://api.jquery.com/length/">.length</a></code> property; however, <strong>the <code>.length</code> property is preferred</strong> because it does not have the overhead of a function call.</p>
1012
<p>Given a simple unordered list on the page:</p>
1113
<pre><code>
@@ -48,6 +50,7 @@ $(document.body)
4850
<div></div>
4951
]]></html>
5052
</example>
53+
<category slug="deprecated"/>
5154
<category slug="miscellaneous/dom-element-methods"/>
5255
<category slug="version/1.0"/>
53-
</entry>
56+
</entry>

0 commit comments

Comments
 (0)