Skip to content

Instantly share code, notes, and snippets.

@jtmkrueger
Created September 13, 2011 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtmkrueger/1214934 to your computer and use it in GitHub Desktop.
Save jtmkrueger/1214934 to your computer and use it in GitHub Desktop.
liveDraggable
(function ($) {
$.fn.liveDraggable = function (opts) {
this.live("mouseover", function() {
if (!$(this).data("init")) {
$(this).data("init", true).draggable(opts);
}
});
};
}(jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment