Skip to content

Commit a026565

Browse files
mgolkswedberg
authored andcommitted
Deprecate context property. Fixes: http://bugs.jquery.com/ticket/13801. Resolves jquery#308
1 parent b261842 commit a026565

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

categories.xml

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@
5656
<p>For more information, see the Release Notes/Changelog at <a href="http://blog.jquery.com/2012/08/09/jquery-1-8-released/">http://blog.jquery.com/2012/08/09/jquery-1-8-released/</a></p>
5757
]]></desc>
5858
</category>
59+
<category name="Deprecated 1.10" slug="deprecated-1.10">
60+
<desc><![CDATA[All the aspects of the API that were deprecated in the corresponding version of jQuery.
61+
<p>For more information, see the Release Notes/Changelog at <a href="http://blog.jquery.com/2013/05/24/jquery-1-10-0-and-2-0-1-released/">http://blog.jquery.com/2013/05/24/jquery-1-10-0-and-2-0-1-released/</a></p>
62+
]]></desc>
63+
</category>
5964
</category>
6065
<category name="Dimensions" slug="dimensions">
6166
<desc><![CDATA[These methods are used to get and set the CSS dimensions for the various properties.]]></desc>

entries/context.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<?xml version="1.0"?>
2-
<entry type="property" name="context" return="Element">
2+
<entry type="property" name="context" return="Element" deprecated="1.10">
33
<title>.context</title>
44
<signature>
55
<added>1.3</added>
66
</signature>
77
<desc>The DOM node context originally passed to <code>jQuery()</code>; if none was passed then context will likely be the document.</desc>
88
<longdesc>
9+
<p>The <code>.context</code> property was deprecated in jQuery 1.10 and is only maintained to the extent needed for supporting <code>.live()</code> in the jQuery Migrate plugin. It may be removed without notice in a future version.</p>
910
<p>The <code>.live()</code> method for binding event handlers uses this property to determine the root element to use for its event delegation needs.</p>
1011
<p>The value of this property is typically equal to <code>document</code>, as this is the default context for jQuery objects if none is supplied. The context may differ if, for example, the object was created by searching within an <code>&lt;iframe&gt;</code> or XML document.</p>
1112
<p>Note that the context property may only apply to the elements originally selected by <code>jQuery()</code>, as it is possible for the user to add elements to the collection via methods such as <code>.add()</code> and these may have a different context.</p>
@@ -28,4 +29,5 @@
2829
<category slug="internals"/>
2930
<category slug="properties/jquery-object-instance-properties"/>
3031
<category slug="version/1.3"/>
32+
<category slug="deprecated/deprecated-1.10"/>
3133
</entry>

entries/selector.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
</signature>
77
<desc>A selector representing selector passed to jQuery(), if any, when creating the original set.</desc>
88
<longdesc>
9-
<p>The <code>.selector</code> property was deprecated in jQuery 1.7 and is only maintained in jQuery 1.9 to the extent needed for supporting <code>.live()</code> in the jQuery Migrate plugin. It may be removed without notice in a future version. The property was never a reliable indicator of the selector that could be used to obtain the set of elements currently contained in the jQuery set where it was a property, since subsequent traversal methods may have changed the set. Plugins that need to use a selector should have the caller pass in the selector as part of the plugin's arguments during initialization.</p>
9+
<p>The <code>.selector</code> property was deprecated in jQuery 1.7 and is only maintained to the extent needed for supporting <code>.live()</code> in the jQuery Migrate plugin. It may be removed without notice in a future version. The property was never a reliable indicator of the selector that could be used to obtain the set of elements currently contained in the jQuery set where it was a property, since subsequent traversal methods may have changed the set. Plugins that need to use a selector should have the caller pass in the selector as part of the plugin's arguments during initialization.</p>
1010
</longdesc>
1111
<category slug="internals"/>
1212
<category slug="properties/global-jquery-object-properties"/>
13+
<category slug="version/1.3"/>
1314
<category slug="deprecated/deprecated-1.7"/>
1415
</entry>

0 commit comments

Comments
 (0)