threedubmedia/jquery.threedubmedia — pull request #1 by thegrandpoobah (2012-07-19 14:28:58+00:00)
Title: Optimize jquery.event.drop locate function

Instead of using the jQuery methods position, outerWidth, and outerHeight to compute the dimensions of a DOM element, use the native getBoundingClientRect function instead. Simplifies the code a bit and should also speed up the critical "locate" function a bit (http://jsperf.com/getboundingclientrect-vs-jquery). Its been around long enough (https://developer.mozilla.org/en/DOM/element.getBoundingClientRect) so it shouldn't cause any cross-platform weirdness either.