Skip to content

Commit

Permalink
fix more
Browse files Browse the repository at this point in the history
  • Loading branch information
raimohanska committed Aug 20, 2020
1 parent 9b2f3c8 commit 55bbd97
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions examples/examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,12 @@ <h2>Batter up! (take/skip example):</h2>
</div>
</body>
<script>
function isEmpty(s) { return s.length == 0 }
const isEmpty = s => s.length === 0

function always(value) { () => value }

function keyCodeIs(keyCode) {
return event => event.keyCode == keyCode
}
const always = value => () => value

const keyCodeIs = (keyCode) => event => event.keyCode === keyCode

function keyDownEvents(keyCode) {
return Bacon.fromEvent(document, "keydown").filter(keyCodeIs(keyCode))
}
Expand All @@ -108,6 +106,7 @@ <h2>Batter up! (take/skip example):</h2>

// Combinators example
keyStateProperty(32)
.log()
.onValue(value => document.querySelector("#spacebar-value").textContent = value)

// Enable/disable example
Expand Down

0 comments on commit 55bbd97

Please sign in to comment.