Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mark 1.9 removed methods as removed.

  • Loading branch information...
commit 6d8fc06390617c44b7ffebde4f70647cda208002 1 parent 2e909b6
@kswedberg kswedberg authored
Showing with 4 additions and 60 deletions.
  1. +1 −0  entries/jQuery.sub.xml
  2. +1 −35 entries/live.xml
  3. +2 −25 entries/selector.xml
View
1  entries/jQuery.sub.xml
@@ -2,6 +2,7 @@
<entry type="method" name="jQuery.sub" return="jQuery" deprecated="1.7">
<title>jQuery.sub()</title>
<deprecated>1.7</deprecated>
+ <removed>1.9</removed>
<signature>
<added>1.5</added>
</signature>
View
36 entries/live.xml
@@ -1,6 +1,7 @@
<?xml version="1.0"?>
<entry type="method" name="live" return="jQuery" deprecated="1.7">
<title>.live()</title>
+ <removed>1.9</removed>
<desc>Attach an event handler for all elements which match the current selector, now and in the future.</desc>
<signature>
<added>1.3</added>
@@ -63,23 +64,6 @@ $(document).on("click", "a.offsite", function(){ alert("Goodbye!"); }); /
</ul>
</longdesc>
<example>
- <desc>Click a paragraph to add another. Note that .live() binds the click event to all paragraphs - even new ones.</desc>
- <code><![CDATA[
-$("p").live("click", function(){
- $(this).after("<p>Another paragraph!</p>");
-});
-]]></code>
- <css><![CDATA[
- p { background:yellow; font-weight:bold; cursor:pointer;
- padding:5px; }
- p.over { background: #ccc; }
- span { color:red; }
- ]]></css>
- <html><![CDATA[<p>Click me!</p>
-
- <span></span>]]></html>
- </example>
- <example>
<desc>Cancel a default action and prevent it from bubbling up by returning false.</desc>
<code><![CDATA[$("a").live("click", function() { return false; })]]></code>
</example>
@@ -102,15 +86,6 @@ $("button").click(function () {
$("p").trigger("myCustomEvent");
});
]]></code>
- <css><![CDATA[
- p { color:red; }
- span { color:blue; }
- ]]></css>
- <html><![CDATA[
- <p>Has an attached custom event.</p>
- <button>Trigger custom event</button>
- <span style="display:none;"></span>
- ]]></html>
</example>
<example>
<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({
}
});
]]></code>
- <css><![CDATA[
- p { background:yellow; font-weight:bold; cursor:pointer; padding:5px; }
- p.over { background: #ccc; }
- span { color:red; }
- ]]></css>
- <html><![CDATA[
- <p>Click me!</p>
- <span></span>
- ]]></html>
</example>
<category slug="events/event-handler-attachment"/>
<category slug="version/1.3"/>
View
27 entries/selector.xml
@@ -1,6 +1,7 @@
<?xml version="1.0"?>
<entry type="property" name="selector" return="String">
<title>.selector</title>
+ <removed>1.9</removed>
<signature>
<added>1.3</added>
</signature>
@@ -9,30 +10,6 @@
<p>Should be used in conjunction with context to determine the exact query used.</p>
<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>
</longdesc>
- <example>
- <desc>Determine the selector used.</desc>
- <code><![CDATA[$("ul")
- .append("<li>" + $("ul").selector + "</li>")
- .append("<li>" + $("ul li").selector + "</li>")
- .append("<li>" + $("div#foo ul:not([class])").selector + "</li>");
-]]></code>
- <css><![CDATA[
- body { cursor:pointer; }
- div { width:50px; height:30px; margin:5px; float:left;
- background:green; }
- span { color:red; }
- ]]></css>
- <html><![CDATA[Some selectors:<ul></ul>]]></html>
- </example>
- <example>
- <desc>Collecting elements differently</desc>
- <code><![CDATA[
- $('<div>' + $('ul li.foo').selector + '</div>').appendTo('body'); // "ul li.foo"
- $('<div>' + $('ul').find('li').filter('.foo').selector + '</div>').appendTo('body'); // "ul li.filter(.foo)"
-]]></code>
- <html><![CDATA[Some selectors:<ul></ul>
-]]></html>
- </example>
<category slug="internals"/>
<category slug="properties/global-jquery-object-properties"/>
-</entry>
+</entry>
Please sign in to comment.
Something went wrong with that request. Please try again.