Skip to content

Releases: LeaVerou/bliss

v1.0.6

23 Jun 20:39
Compare
Choose a tag to compare
  • Event binding methods in Bliss Shy (such as $.bind()) now track events, so events added with Bliss Shy can still benefit from class names and mass unbinding, as long as the events were added with Bliss methods. Now the only difference in Bliss Full (event-wise) is that if using that, events added via the native addEventListener() and removed via removeEventListener() are also tracked.
  • New $.toggleAttribute() method for adding or removing attributes based on a certain criteria
  • New $.load() method for loading either JS or CSS resources
  • New $.when() method for deferring code until after a certain event has fired.
  • $.include() now resolves or rejects with the <script> element created
  • $.clone() is now deprecated and will be removed in the next version. Both because it wasn't used much, and because it can easily introduce a performance bottleneck.
  • Lots of bugfixes

v1.0.5

04 Dec 04:07
Compare
Choose a tag to compare

Changelog:

  • Exposed xhr.abort() from $.fetch(), thanks to @kajmagnus
  • Now possible to unset Bliss' default Content-type by passing undefined, thanks to @friday
  • Polyfill for Element.remove() not needed anymore just to use $.include()
  • $.inside(), $.before(), $.after(), $.start(), $.around() will not error anymore if the argument is empty.
  • Dropped special handling for <template> in $.around()
  • $.ready(callback) now possible, to allow synchronous execution if DOM is already loaded (even if Promise is resolved, .then() is not executed synchronously).

v1.0.4: Allow hyphenated property names in $.style()

09 Apr 03:36
Compare
Choose a tag to compare

Changelog:

  • $.Class() now accepts an existing class as the first argument. Useful for augmenting existing classes.
  • $.Hooks#add() now accepts an object literal with multiple hooks
  • $.style() now accepts hyphenated property names (e.g. background-color as well as backgroundColor), to allow usage for setting CSS Variables, which have no camelCase version.

v1.0.3

02 Feb 21:50
Compare
Choose a tag to compare
$: If selector is empty, return null (instead of error)

1.0.1

01 Feb 19:12
Compare
Choose a tag to compare
v1.0.1

Stopped modifying original argument in $.create(), as that creates we…

First release

12 Dec 00:44
Compare
Choose a tag to compare
v1.0.0

Fixed #86, started docs for #87, added new method $.each(), with docs…