cash

An absurdly small jQuery alternative for modern browsers.

MIT License

Downloads
98.9K
Stars
6.4K
Committers
35
cash - 2.1.3

Published by fabiospampinato over 6 years ago

This is a breaking update, many things have been changed, generally cash is now much more aligned with jQuery, in many cases you should be able to use cash as a drop-in replacement for jQuery!

Notable changes

  • Added support for partial builds
  • Added support for space-separated events to $.fn.on|one|off|trigger
  • Added support for event namespaces
  • Event's data is now passed as an argument
  • $.fn.css will automatically add the px suffix to the value when appropriate
  • Added $.fn.slice
  • Added $.fn.detach
  • Added $.fn.replace
  • Added $.fn.replaceWith
  • Dropped IE9 support
cash - 1.3.7

Published by shshaw almost 7 years ago

Removed null Icon files from NPM package

cash - 1.3.6

Published by shshaw almost 7 years ago

Mainly compatibility updates and bugfixes.

Merged #141, #157, #158, #171, and #173.

cash - 1.3.5

Published by shshaw about 8 years ago

cash - 1.3.4

Published by shshaw over 8 years ago

Fixed

  • $.fn.text correctly handles false-y values now (issue #125)
cash - 1.3.3

Published by shshaw over 8 years ago

Fixed

  • $.fn.css fixed to allow false-y values to be set like $(el).css(opacity,0);
  • fixed getPrefixedProp and camelCase issues with certain CSS names, like transition-duration

Added

  • Exposed $.prefixedProp and $.camelCase utilities to allow for eventual animation support.
cash - 1.3.2

Published by shshaw over 8 years ago

Fixed

  • $.fn.index now correctly returns the index of the selector/element passed in as the first parameter.
cash - 1.3.1

Published by shshaw over 8 years ago

Fixed

  • Hyphenated CSS properties ( background-color, border-radius, transition-duration, etc ) are now set correctly using $.fn.css
cash - 1.3.0

Published by shshaw over 8 years ago

Added

  • $.fn.removeClass will remove all classes when no arguments are provided. #110
  • $.fn.trigger will now pass along the data in the second argument as event.data. #83
  • $.fn.data now accepts an object to set multiple data at once. #96 #95

Fixed

  • Delegated events now receive the original event object. #109
  • null and falsey arguments no longer throw errors on the class methods. #110
  • $.fn.attr no longer throws errors on empty collections #111 #52
  • $.fn.attr returns values more logically ( undefined instead of null , undefined instead of a collection ) #111
cash - 1.2.1

Published by shshaw over 8 years ago

Fixed:

  • $.fn.filter now correctly returns collections instead of arrays of elements. Affected $.fn.children and $.fn.filter in particular. (Issue #100 )
cash - 1.2.0

Published by shshaw over 8 years ago

  • Qunit testing
cash - 1.1.0

Published by shshaw over 8 years ago

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
cash - 1.0.0

Published by kenwheeler over 9 years ago

  • Huge code cleanup and translation to ES6 by @thejameskyle
  • Removing AJAX. Wasn't fully featured enough, there are better alternatives, like the case with animation, and this is DOM util lib
cash - 0.0.3

Published by kenwheeler almost 10 years ago

  • Added $.fn.add
  • Added $.fn.is
  • Added $.fn.closest
  • Improved addClass, removeClass & parents()
  • Fixed tagName selector performance
  • Bug Fixes
  • Performance tuning
cash - 0.0.2

Published by kenwheeler about 10 years ago

  • Bug Fixes
  • Performance tuning
  • New module syntax
cash - Turbo Alpha Release

Published by kenwheeler about 10 years ago

This is the initial release of cash.

It is going to have bugs. The web might not even be ready for it yet.

But I think its a cool idea.