jquery/test/data
John Resig 3a4e1233aa Landing the new expando management code. Completely overhauls how data is associated with elements.
Plugins will be most interested in:
- jQuery.data(elem) -> Unique ID for the element
- jQuery.data(elem, name) -> Named data store for the element
- jQuery.data(elem, name, value) -> Saves a value to the named data store
- jQuery.removeData(elem) -> Remove the expando and the complete data store
- jQuery.removeData(elem, name) -> Removes just this one named data store

jQuery's .remove() and .empty() automatically clean up after themselves. Once an element leaves a DOM document their events are no longer intact. Thus, statements like so:
{{{
  $("#foo").remove().appendTo("#bar");
}}}
should be written like so:
{{{
  $("#foo").appendTo("#bar");
}}}
in order to avoid losing the bound events.
2007-09-08 23:31:23 +00:00
..
cow.jpg Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
dashboard.xml Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
json.php Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
json_obj.js Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
jsonp.php Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
name.html Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
name.php Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
test.html Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
test.js Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
test.php Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
test2.html Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
test3.html Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
testrunner.js Landing the new expando management code. Completely overhauls how data is associated with elements. 2007-09-08 23:31:23 +00:00
testsuite.css Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
text.php Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
with_fries.xml Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00