Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
function hasListener(element) { element = $(element) var id = null if (element === window) id = 1 else if (element._prototypeEventID) id = element._prototypeEventID[0] if (id) { var cache = Event.cache[id] return cache && Object.keys(cache).without('element').length > 0 } return false }
This paste will be private.
From the Design Piracy series on my blog: