Skip to content

Commit 6d8fc06

Browse files
committed
Mark 1.9 removed methods as removed.
1 parent 2e909b6 commit 6d8fc06

File tree

3 files changed

+4
-60
lines changed

3 files changed

+4
-60
lines changed

entries/jQuery.sub.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<entry type="method" name="jQuery.sub" return="jQuery" deprecated="1.7">
33
<title>jQuery.sub()</title>
44
<deprecated>1.7</deprecated>
5+
<removed>1.9</removed>
56
<signature>
67
<added>1.5</added>
78
</signature>

entries/live.xml

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0"?>
22
<entry type="method" name="live" return="jQuery" deprecated="1.7">
33
<title>.live()</title>
4+
<removed>1.9</removed>
45
<desc>Attach an event handler for all elements which match the current selector, now and in the future.</desc>
56
<signature>
67
<added>1.3</added>
@@ -62,23 +63,6 @@ $(document).on("click", "a.offsite", function(){ alert("Goodbye!"); }); /
6263
<li>In <b>jQuery 1.3.x</b> only the following JavaScript events could be bound: <code>click</code>, <code>dblclick</code>, <code>keydown</code>, <code>keypress</code>, <code>keyup</code>, <code>mousedown</code>, <code>mousemove</code>, <code>mouseout</code>, <code>mouseover</code>, and <code>mouseup</code>.</li>
6364
</ul>
6465
</longdesc>
65-
<example>
66-
<desc>Click a paragraph to add another. Note that .live() binds the click event to all paragraphs - even new ones.</desc>
67-
<code><![CDATA[
68-
$("p").live("click", function(){
69-
$(this).after("<p>Another paragraph!</p>");
70-
});
71-
]]></code>
72-
<css><![CDATA[
73-
p { background:yellow; font-weight:bold; cursor:pointer;
74-
padding:5px; }
75-
p.over { background: #ccc; }
76-
span { color:red; }
77-
]]></css>
78-
<html><![CDATA[<p>Click me!</p>
79-
80-
<span></span>]]></html>
81-
</example>
8266
<example>
8367
<desc>Cancel a default action and prevent it from bubbling up by returning false.</desc>
8468
<code><![CDATA[$("a").live("click", function() { return false; })]]></code>
@@ -102,15 +86,6 @@ $("button").click(function () {
10286
$("p").trigger("myCustomEvent");
10387
});
10488
]]></code>
105-
<css><![CDATA[
106-
p { color:red; }
107-
span { color:blue; }
108-
]]></css>
109-
<html><![CDATA[
110-
<p>Has an attached custom event.</p>
111-
<button>Trigger custom event</button>
112-
<span style="display:none;"></span>
113-
]]></html>
11489
</example>
11590
<example>
11691
<desc>Use an object to bind multiple live event handlers. Note that .live() calls the click, mouseover, and mouseout event handlers for all paragraphs--even new ones.</desc>
@@ -127,15 +102,6 @@ $("p").live({
127102
}
128103
});
129104
]]></code>
130-
<css><![CDATA[
131-
p { background:yellow; font-weight:bold; cursor:pointer; padding:5px; }
132-
p.over { background: #ccc; }
133-
span { color:red; }
134-
]]></css>
135-
<html><![CDATA[
136-
<p>Click me!</p>
137-
<span></span>
138-
]]></html>
139105
</example>
140106
<category slug="events/event-handler-attachment"/>
141107
<category slug="version/1.3"/>

entries/selector.xml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0"?>
22
<entry type="property" name="selector" return="String">
33
<title>.selector</title>
4+
<removed>1.9</removed>
45
<signature>
56
<added>1.3</added>
67
</signature>
@@ -9,30 +10,6 @@
910
<p>Should be used in conjunction with context to determine the exact query used.</p>
1011
<p>The <code>.live()</code> method for binding event handlers uses this property to determine how to perform its searches. Plug-ins which perform similar tasks may also find the property useful. This property contains a string representing the matched set of elements, but if DOM traversal methods have been called on the object, the string may not be a valid jQuery selector expression. For this reason, the value of <code>.selector</code> is generally most useful immediately following the original creation of the object. Consequently, the <code>.live()</code> method should only be used in this scenario. </p>
1112
</longdesc>
12-
<example>
13-
<desc>Determine the selector used.</desc>
14-
<code><![CDATA[$("ul")
15-
.append("<li>" + $("ul").selector + "</li>")
16-
.append("<li>" + $("ul li").selector + "</li>")
17-
.append("<li>" + $("div#foo ul:not([class])").selector + "</li>");
18-
]]></code>
19-
<css><![CDATA[
20-
body { cursor:pointer; }
21-
div { width:50px; height:30px; margin:5px; float:left;
22-
background:green; }
23-
span { color:red; }
24-
]]></css>
25-
<html><![CDATA[Some selectors:<ul></ul>]]></html>
26-
</example>
27-
<example>
28-
<desc>Collecting elements differently</desc>
29-
<code><![CDATA[
30-
$('<div>' + $('ul li.foo').selector + '</div>').appendTo('body'); // "ul li.foo"
31-
$('<div>' + $('ul').find('li').filter('.foo').selector + '</div>').appendTo('body'); // "ul li.filter(.foo)"
32-
]]></code>
33-
<html><![CDATA[Some selectors:<ul></ul>
34-
]]></html>
35-
</example>
3613
<category slug="internals"/>
3714
<category slug="properties/global-jquery-object-properties"/>
38-
</entry>
15+
</entry>

0 commit comments

Comments
 (0)