Skip to content

1.1.0

Compare
Choose a tag to compare
@shshaw shshaw released this 12 Apr 16:41
· 600 commits to master since this release

Added

  • $.fn.toggleClass
  • $.fn.after and $.fn.before to inject content after or before the collection
  • $.fn.position, $.fn.offset and $.fn.offsetParent to get element positioning.
  • $.fn.push, $.fn.map and $.fn.splice for array-like features for collections
  • $.fn.one for one time event listeners
  • $.isFunction, $.isString, $.isNumber utilities for type-checking

Collection Support

Added true collection support, instead of only the first element, for:

  • $.fn.append
  • $.fn.appendTo
  • $.fn.prepend
  • $.fn.prependTo
  • $.fn.insertBefore
  • $.fn.clone

Fixed

  • Faster selector function
  • $.fn.css now automatically adds vendor prefixes, if the browser needs
  • $.fn.data now store any data (objects, arrays, etc) on a collection
  • $.fn.eq and $.fn.get now support negative indexes to pull from the end of the collection
  • null event delegates no longer break event binding. (issue #57)
  • $.fn.on works on window and document (issue #51)
  • $.fn.serialize now correctly serializes checkboxes
  • $.each and $.fn.each loops break if returning false