Skip to main content

Colin Hawkett

Member since Sep 12, 2010

Recent Blog Comments By Colin Hawkett

  • Your jQuery Selector Context Can Be A jQuery Object

    Posted on Sep 13, 2010 at 7:40 AM

    Not sure about that - at other points in his book he explicitly uses the following convention: $('a', $('#context')[0]) Not saying for sure this is correct, but certainly the code you are seeing with this syntax could very well be the result of expert advice - I know I used that convention specifi... read more »

  • Your jQuery Selector Context Can Be A jQuery Object

    Posted on Sep 12, 2010 at 2:06 AM

    My understanding is that the context parameter behaviour has changed in jQuery 1.4, and it was not good practice prior to pass the jQuery object as a context. Cody Lindley notes at the beginning of chapter 9 of 'jQuery enlightenment' (for 1.3.2) about passing context - 'For a performance gain to ... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel