Skip to main content

Paul Graham

Member since May 28, 2014

Recent Blog Comments By Paul Graham

  • Capturing Document-Click Events With AngularJS

    Posted on May 29, 2014 at 8:39 PM

    @JP - the "event" object that is passed into the event handler is a standard event object. Meaning it has the typical "target" and "currentTarget" properties, etc - these are DOM elements from which you can get their IDs (although I would assume you want the ID to get t... read more »

  • Capturing Document-Click Events With AngularJS

    Posted on May 28, 2014 at 4:13 AM

    Have you considered adding something to un-bind the event on $destroy? I'm thinking of cases where you have multiple views (or nested partials or directives) and only need the document click handler in some views. In which case it might not be added to the body tag, but perhaps to a tag inside a v... 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