/when.js

Waiting for result of one function before executing another

Primary LanguageJavaScript

#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);