All pastes #829154 Raw Edit

Mine

public text v1 · immutable
#829154 ·published 2007-12-22 23:17 UTC
rendered paste body
[...]
	$.fn.extend({
		
		showTooltip: function(settings) {
			
			settings = $.extend({}, $.Tooltip.defaults, settings);
			createHelper();
			this.tSettings = settings;
			this.tooltipText = 'dummy content';
			$(this).removeAttr("title");
			this.alt = "";
		    $(this).click(hideEvent);
			save(this);
			
			alert('show ' + this.tSettings);    // displays [object Object]
			alert('show ' + this.tooltipText);  // displays dummy content
		},
		
		hideTooltip: function() {
			alert('hide ' + this.tSettings);  // displays undefined
			alert('hide ' + this.tooltipText); // displays undefined
			
			hideNoEvent(this);
		},
[...]