Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at cf.Objective() 2012 (Minneapolis, MN) with: Jason Seminara
Ben Nadel at cf.Objective() 2012 (Minneapolis, MN) with: Jason Seminara@jseminara )

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 »