baconjs / bacon.js

Functional reactive programming library for TypeScript and JavaScript

Home Page:https://baconjs.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.asEventStream('...', function(e){}) will always returns the event

BlackYoup opened this issue · comments

The function will always return the event instead of a the value the user wants to return

$('body').asEventStream('click', e => 'body clicked !').log();

prints the event, not body clicked !

It came with version 0.7.76, still in 0.7.77

Fixed in 0.7.78. Thanks for the report! This has been broken in the coffeescript->es6 transformation, most probably.

Thanks :)