2nd to last time I tried to write modular javascript I got burned by scoping.
Last time I tried to remedy that by having the "public" function call a nested function using javascript's .call(module) to make sure things were scoped correctly. Not sure that's a good practice though but at least it made my life just a tiny bit less frustrating.
Last time I tried to remedy that by having the "public" function call a nested function using javascript's .call(module) to make sure things were scoped correctly. Not sure that's a good practice though but at least it made my life just a tiny bit less frustrating.