Skip to main content

Steven Black

Member since Oct 7, 2009

Recent Blog Comments By Steven Black

  • Learning Event-Driven Programming Best Practices From Web Browsers

    Posted on Dec 14, 2010 at 11:30 AM

    I notice that click() behaves differently than submit(). These both yield the same result for me; the event delegate fires as expected: $("input").eq(0).click() $("input")[0].click() But as you show, these do not. The second line does not fire the event delegate. $("... read more »

  • Passing A Function To jQuery's Attr() Method For Implicit Iteration

    Posted on Oct 7, 2009 at 1:18 PM

    Thanks lads! That clarifies it. I got thrown by the proximate code-comment that implies the call is about resolving style values. The interesting thing is, jQuery.prop() is called nowhere else in version 1.3.2. So apparently .attr() is the only method that's wired in this particular way. I wou... read more »

  • Passing A Function To jQuery's Attr() Method For Implicit Iteration

    Posted on Oct 7, 2009 at 12:17 PM

    I'm looking at the jQuery source, trying to reckon what implements this .attr(,function(){}) behaviour. I don't see it. What am I missing? My interest here is, looking at the jQuery source, what other native jQuery methods behave likewise? Because this is way cool. For example, .html(function()... 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