Kaffeine

Extended Javascript for Pros

Fork me on GitHub

Implicit Variables

This module provides support for omitting the var keyword: the variables will be automagically defined in the closest relevant closure.

Examples

x = 1, a = 3
{
  x = 2
  y = 2
}

The var will be pulled to the top of the current closure:

{
  x = 2
  var x
}