Liam
Member since Dec 10, 2009
- Profile: /members/4933-liam.htm
- Comments: 4
Recent Blog Comments By Liam
-
Using Named Functions Within Self-Executing Function Blocks In Javascript
Posted on Aug 16, 2010 at 11:00 AM
actually, ignore me.. got a little muddled up..... read more »
-
Using Named Functions Within Self-Executing Function Blocks In Javascript
Posted on Aug 16, 2010 at 10:57 AM
@Ben: forgot to mention that it needs to be inside an object. I tend to keep all my functions inside of a global object. obj = {}; obj.funcName = (function(){ alert('hi'); })();... read more »
-
Using Named Functions Within Self-Executing Function Blocks In Javascript
Posted on Aug 16, 2010 at 9:45 AM
I do this slightly differently. functionName = (function(){ ..do stuff.. })(); same thing really.... read more »
-
Using $Variable In jQuery Code Is Just Hungarian Notation
Posted on Dec 10, 2009 at 12:16 PM
I prepend all my jquery variables with a dollar, simply so while I scan over my code, I can easily see what is a "selector" and what is simply a variable. eg $("div").click(function(){ ... }); that's quite easy to spot as a selector while scanning through chunks of code, while var div = $("div")... read more »