An absurdly small jQuery alternative for modern browsers.
MIT License
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!
$.fn.on|one|off|trigger
$.fn.css
will automatically add the px
suffix to the value when appropriate$.fn.slice
$.fn.detach
$.fn.replace
$.fn.replaceWith
Published by shshaw almost 7 years ago
Removed null Icon files from NPM package
Published by shshaw almost 7 years ago
Mainly compatibility updates and bugfixes.
Merged #141, #157, #158, #171, and #173.
Published by shshaw about 8 years ago
Published by shshaw over 8 years ago
$.fn.text
correctly handles false-y values now (issue #125)Published by shshaw over 8 years ago
$.fn.css
fixed to allow false-y values to be set like $(el).css(opacity,0);
getPrefixedProp
and camelCase
issues with certain CSS names, like transition-duration
$.prefixedProp
and $.camelCase
utilities to allow for eventual animation support.Published by shshaw over 8 years ago
$.fn.index
now correctly returns the index of the selector/element passed in as the first parameter.Published by shshaw over 8 years ago
background-color
, border-radius
, transition-duration
, etc ) are now set correctly using $.fn.css
Published by shshaw over 8 years ago
$.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 #95null
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 ) #111Published by shshaw over 8 years ago
$.fn.filter
now correctly returns collections instead of arrays of elements. Affected $.fn.children and $.fn.filter in particular. (Issue #100 )Published by shshaw over 8 years ago
Published by shshaw over 8 years ago
$.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-checkingAdded true collection support, instead of only the first element, for:
$.fn.append
$.fn.appendTo
$.fn.prepend
$.fn.prependTo
$.fn.insertBefore
$.fn.clone
$.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 collectionnull
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
Published by kenwheeler over 9 years ago
Published by kenwheeler almost 10 years ago
Published by kenwheeler about 10 years ago
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.