Waiting for result of one function before executing another
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md
demo.html
when.js

README.md

Javascript when

Simple function which is execute second callback when first is true.

Compatibility

ie6+ & adequate browsers

Usage

when(boolean_callback[, delay, attempts])
  .then(custom_callback[, arg[0], arg[1], ...])[.then(...)][.then(...)]
  .not(not_callback);