Bliss Versions Save

Blissful JavaScript

v1.0.6

4 years ago
  • 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

6 years ago

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

7 years ago

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

7 years ago

v1.0.1

8 years ago

v1.0.0

8 years ago