Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Clean up deprecated/removed flags. Add flags to .toggle(fn, fn) and .…

…die()
  • Loading branch information...
commit c7298dc373b251c9db5ded9009fb49fd50040d95 1 parent 6d8fc06
@kswedberg kswedberg authored
View
3  entries/closest.xml
@@ -136,10 +136,9 @@ $('li.item-a').closest('#one', listItemII)
<category slug="version/1.4"/>
<category slug="version/1.6"/>
</entry>
- <entry type="method" name="closest" return="Array" removed="1.8" deprecated="1.7">
+ <entry type="method" name="closest" return="Array" deprecated="1.7" removed="1.8">
<signature>
<added>1.4</added>
- <removed>1.8</removed>
<argument name="selectors" type="Array">
<desc>An array or string containing a selector expression to match elements against (can also be a jQuery object).</desc>
</argument>
View
32 entries/die.xml
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<entry type="method" name="die" return="jQuery" deprecated="1.7">
+<entry type="method" name="die" return="jQuery" deprecated="1.7" removed="1.9">
<title>.die()</title>
<desc>Remove event handlers previously attached using <code>.live()</code> from the elements.</desc>
<signature>
@@ -27,36 +27,6 @@
<p><strong>As of jQuery 1.7</strong>, use of <code>.die()</code> (and its complementary method, <code>.live()</code>) is not recommended. Instead, use <a href="http://api.jquery.com/off/"><code>.off()</code></a> to remove event handlers bound with <a href="http://api.jquery.com/on/"><code>.on()</code></a></p>
<p><strong>Note:</strong> In order for .die() to function correctly, the selector used with it must match exactly the selector initially used with .live().</p>
</longdesc>
- <category slug="events/event-handler-attachment"/>
- <category slug="version/1.3"/>
- <category slug="version/1.4.1"/>
- <category slug="version/1.4.3"/>
- <example>
- <desc>Can bind and unbind events to the colored button.</desc>
- <code><![CDATA[
-function aClick() {
- $("div").show().fadeOut("slow");
-}
-$("#bind").click(function () {
-$("#theone").live("click", aClick)
- .text("Can Click!");
-});
-$("#unbind").click(function () {
-$("#theone").die("click", aClick)
- .text("Does nothing...");
-});
-
-]]></code>
- <css><![CDATA[
-button { margin:5px; }
-button#theone { color:red; background:yellow; }
-]]></css>
- <html><![CDATA[<button id="theone">Does nothing...</button>
-<button id="bind">Bind Click</button>
-<button id="unbind">Unbind Click</button>
-
-<div style="display:none;">Click!</div>]]></html>
- </example>
<example>
<desc>To unbind all live events from all paragraphs, write:</desc>
<code><![CDATA[$("p").die()]]></code>
View
3  entries/error.xml
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
-<entry type="method" name="error" return="jQuery">
+<entry type="method" name="error" return="jQuery" deprecated="1.8">
<title>.error()</title>
- <deprecated>1.8</deprecated>
<desc>Bind an event handler to the "error" JavaScript event.</desc>
<signature>
<added>1.0</added>
View
3  entries/jQuery.boxModel.xml
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
-<entry type="property" name="jQuery.boxModel" return="Boolean">
+<entry type="property" name="jQuery.boxModel" return="Boolean" deprecated="1.3">
<title>jQuery.boxModel</title>
- <deprecated>1.3</deprecated>
<signature>
<added>1.0</added>
</signature>
View
6 entries/jQuery.browser.xml
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
-<entries>
- <entry type="property" name="jQuery.browser" return="PlainObject">
+<entries deprecated="1.3" removed="1.9">
+ <entry type="property" name="jQuery.browser" return="PlainObject" deprecated="1.3" removed="1.9">
<title>jQuery.browser</title>
<signature>
<added>1.0</added>
@@ -74,7 +74,7 @@
<category slug="version/1.0"/>
<category slug="version/1.1.3"/>
</entry>
- <entry type="property" name="jQuery.browser.version" return="String">
+ <entry type="property" name="jQuery.browser.version" return="String" deprecated="1.3" removed="1.9">
<signature>
<added>1.1.3</added>
</signature>
View
4 entries/jQuery.sub.xml
@@ -1,8 +1,6 @@
<?xml version="1.0"?>
-<entry type="method" name="jQuery.sub" return="jQuery" deprecated="1.7">
+<entry type="method" name="jQuery.sub" return="jQuery" deprecated="1.7" removed="1.9">
<title>jQuery.sub()</title>
- <deprecated>1.7</deprecated>
- <removed>1.9</removed>
<signature>
<added>1.5</added>
</signature>
View
3  entries/live.xml
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
-<entry type="method" name="live" return="jQuery" deprecated="1.7">
+<entry type="method" name="live" return="jQuery" deprecated="1.7" removed="1.9">
<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>
View
3  entries/load-event.xml
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
-<entry type="method" name="load" return="jQuery">
+<entry type="method" name="load" return="jQuery" deprecated="1.8">
<title>.load()</title>
- <deprecated>1.8</deprecated>
<desc>Bind an event handler to the "load" JavaScript event.</desc>
<signature>
<added>1.0</added>
View
3  entries/selector.xml
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
-<entry type="property" name="selector" return="String">
+<entry type="property" name="selector" return="String" removed="1.9">
<title>.selector</title>
- <removed>1.9</removed>
<signature>
<added>1.3</added>
</signature>
View
3  entries/toggle-event.xml
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
-<entry type="method" name="toggle" return="jQuery">
+<entry type="method" name="toggle" return="jQuery" deprecated="1.8" removed="1.9">
<title>.toggle()</title>
- <deprecated>1.8</deprecated>
<desc>Bind two or more handlers to the matched elements, to be executed on alternate clicks.</desc>
<signature>
<added>1.0</added>
View
3  entries/unload.xml
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
-<entry type="method" name="unload" return="jQuery">
+<entry type="method" name="unload" return="jQuery" deprecated="1.8">
<title>.unload()</title>
- <deprecated>1.8</deprecated>
<signature>
<added>1.0</added>
<argument name="handler(eventObject)" type="Function">
Please sign in to comment.
Something went wrong with that request. Please try again.