WolframHempel/photobooth-js — pull request #2 by spsawchuk (2012-12-08 10:04:43+00:00)
Title: Drag.js + jQuery

Hey, just saw that the Drag variable was missing a `var`, so it became a global variable. Fixed that, and made some performance improvements to Drag by putting the event listeners and functions on the prototype. This way, any time a new Drag instance is created, the functions aren't being re-defined.

For the jQuery file, the $.fn.photobooth didn't need to be defined within a document.ready() call, so I just removed that wrapper.

Hope this helps!