Elijah Manor
Member since Dec 10, 2009
- Profile: /members/4930-elijah-manor.htm
- URL: http://elijahmanor.com
- Comments: 6
Recent Blog Comments By Elijah Manor
-
Changing The Execution Context Of Your Self-Executing Function Blocks In JavaScript
Posted on Oct 4, 2011 at 4:58 PM
@Bob, In the above case the code still works without surrounding the function in parens, but if you weren't saving the result to a variable the JavaScript engine would not be able to parse it. function() {}.call( yourContext ); //Error var result = function() {}.call( yourContext ); //Works... read more »
-
CorMVC - My jQuery-Powered Model-View-Controller (MVC) Framework
Posted on Dec 21, 2009 at 10:05 AM
I'm all about MVC, but I use ASP.NET MVC. You've been tech tweeted ;)... read more »
-
Building Custom jQuery Event Types: Hesitate Event
Posted on Dec 15, 2009 at 10:52 PM
Man, you are a blogging machine! Great stuff as always. Might be neat to use hesitate to guide a user toward a task that you think they might be wanting? Kinda a newbie nudge ;) Expect a tech tweet tomorrow @ 9:30AM CST... read more »
-
Using Double Not-Operator (!!) For Boolean Type Casting
Posted on Dec 14, 2009 at 11:31 PM
I think the !! is a pretty cool trick, but I question if it is more readable to a newbie since it is an uncommon syntax. Sure, once it is explained then it shouldn't be a big deal. As an F.Y.I. the jQuery Core Style Guideline encourages to use the === over the ==. I just noticed this page yesterday... read more »
-
Using $Variable In jQuery Code Is Just Hungarian Notation
Posted on Dec 10, 2009 at 12:00 PM
@Ben, Good point about the boolean variable. That would stink! So... although I like consistency, maybe this is my one exception to the rule ;) Thanks for responding to my comment and helping me think through it a little more. I am waiting for my copy of the jQuery Cookbook. Maybe I'll have so... read more »
-
Using $Variable In jQuery Code Is Just Hungarian Notation
Posted on Dec 10, 2009 at 11:38 AM
I totally agree that Hungarian Notation is something that should not be used. However, I view the $ prefix as something slightly different. Hungarian notation had its hay-day primarily in type-safe environments where you needed to know the type of a variable for casting-sake (since the editor's wer... read more »