Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with: Oguz Demirkapi
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with: Oguz Demirkapi@demirkapi )

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 »