Skip to content

Instantly share code, notes, and snippets.

@partkyle
Created November 8, 2011 23:04
Show Gist options
  • Save partkyle/1349598 to your computer and use it in GitHub Desktop.
Save partkyle/1349598 to your computer and use it in GitHub Desktop.
(function($, window, undefined) {
$.fn.tooltip = function(options) {
options = $.extend(options, {
title: 'needs a title',
body: 'tst',
position: 'left'
});
$('<div>') // 50 other elements
// '<div>'....
};
})(jQuery, window);
$('#has-tooltip').tooltip({});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment