Community Member Profile
- Profile: /members/4792-Paul-Irish.htm
- URL: http://paulirish.com
- Comments: 4
- Points: 41
Recent Blog Comments By Paul Irish
-
Detecting iPhone's App Mode (Full Screen Mode) For Web Applications
Posted on Jun 24, 2010 at 8:27 PM
Oh I see the logic you were hunting down. yeah you could simplify with a threequals. True. :)... read more »
-
Detecting iPhone's App Mode (Full Screen Mode) For Web Applications
Posted on Jun 24, 2010 at 12:04 PM
Good looks. You can reduce the detection to just if (!!window.navigator.standalone) ... If standalone is undefined, the !! basically casts it to a real boolean false. Then again, a conditional statement is fine with varying levels of falseness.. so you really dont need the !! at all.... read more »
-
Enable And Disable jQuery Event Handlers (Rather Than Bind And Unbind)
Posted on Dec 4, 2009 at 10:46 AM
Very nice! I like that a lot. While keeping the flag inside the handler is a little messy, it's certainly far faster than the unbind/rebind pattern. I like your bindIf abstraction, though.. Slickness. :)... read more »
-
Using Logical Operators To Perform Ternary Operations In Javascript
Posted on Nov 18, 2009 at 11:38 AM
I listed out a few examples of these in my jQuery Anti-Patterns talk. (They're a good thing, in my opinion; and can save quite a few bytes). http://paulirish.com/perf/ <== Slide 54 of jQuery AntiPatterns slides read more »



