1. 18 Sep, 2007 3 commits
  2. 17 Sep, 2007 1 commit
  3. 15 Sep, 2007 14 commits
  4. 14 Sep, 2007 2 commits
  5. 13 Sep, 2007 2 commits
  6. 12 Sep, 2007 1 commit
  7. 11 Sep, 2007 6 commits
  8. 10 Sep, 2007 10 commits
  9. 09 Sep, 2007 1 commit
    • John Resig's avatar
      Landing the new expando management code. Completely overhauls how data is associated with elements. · 3a4e1233
      John Resig authored
      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.
      
      3a4e1233