Changelog
0.9.1
Changelog
0.9.0
IntersectionObserver
. In browsers without IntersectionObserver
support, falls back to the equivalent of setTimeout(bazFunc, 1, node)
. Check out _async example/* (old) sync call */
<div data-bazooka="init-time">
will be called on `Bazooka.refresh()` / `Bazooka.watch()`
</div>
/* (new) async call */
<div data-bazooka="init-time" data-baz-async="viewport">
will be called when in viewport
</div>
Changelog
0.8.0
Baz.h.getAttrs(node)
. Use Baz.h.getAttrs(prefix, node)
or Baz.h.getAttrs(prefix)(node)
instead (deprecated since 0.4.1){\n"a": 1\n}
) by Baz.h.getAttrs
:// node = <div data-baz-json='{\n"a": 1\n}' />
Baz.h.getAttrs('baz', node).json
// prior 0.8.0
// => '{\n"a": 1\n}'
// after 0.8.0
// => { "a": 1 }
Changelog
0.7.0
dispose
functions from bazFunc
Bazooka.rebind
to update already bound bazFunc
sBazookaWrapper.prototype.HMRState
to preserve state between hot reloads