We are pleased to present the 0.9.2 release of hyperscript.
catch
and finally
block: on click
doSomething()
catch e
log e
finally
cleanUp()
finally
block def foo()
doSomething()
finally
cleanUp()
fetch
command now support both configurable timeouts
as well as the ability to cancel a fetch request by sending a fetch:abort
event
to the element making the requestexists
operator: if .someClass exists
...
repeat N times
form of the repeat command now supports an expression for N
(rather than only a number literal)Fixed
conversion can convert a number to a fixed-precision string: log 3.1415 as Fixed:2 -- prints "3.14"
increment
/decrement
/append
commands were all cleaned upin
expression when used with form
and other
iterable DOM elementsEnjoy!