simple modules

ihab.awad at ihab.awad at
Fri Jan 29 20:59:09 PST 2010

Hi Dave & Sam,

Could you please add to your examples the following case: a module
which keeps an internal counter of how many times one of its methods
is called. In other words, in the body of the module, there is
something like:

    var i = 0;
    export function get() { return i++; }

Could you also please add an example where the variable "i" is
initialized to a value supplied by the module importer?


Ihab A.B. Awad, Palo Alto, CA

More information about the es-discuss mailing list