Releases: LeaVerou/bliss
Releases · LeaVerou/bliss
v1.0.6
- 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 nativeaddEventListener()
and removed viaremoveEventListener()
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
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()
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 asbackgroundColor
), to allow usage for setting CSS Variables, which have no camelCase version.
v1.0.3
1.0.1
First release
v1.0.0 Fixed #86, started docs for #87, added new method $.each(), with docs…