Skip to content

Instantly share code, notes, and snippets.

@arkadylukashov
Created November 6, 2012 14:08
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 arkadylukashov/4024928 to your computer and use it in GitHub Desktop.
Save arkadylukashov/4024928 to your computer and use it in GitHub Desktop.
Live Draggable
(function ($) {
$.fn.liveDraggable = function (opts) {
this.live("mouseover", function() {
if (!$(this).data("init")) {
$(this).data("init", true).draggable(opts);
}
});
return $();
};
}(jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment