PascalPrecht/DnD.js — pull request #1 by jhermsmeier (2012-07-04 14:09:27+00:00)
Title: Rewrite: dnd.js

- changed `window.DnD` to `window.dnd`, since it's
not an object function (constructor)

- inlined event handlers, since they're anonymous
functions anyway

- used `with` on `document.querySelector()` to shorten
adding the event listeners

- used terniaries on callback condition to save a
few bytes on compression

- used `Object.create()` directly on `window.dnd`
to create an object with `dnd.on()` as the only
prototype method, instead of an own property

- removed outer wrapper function