Skip to content

Commit

Permalink
Removed content.clone option in favour of manual .clone() call by use…
Browse files Browse the repository at this point in the history
…r to reduce filesize
  • Loading branch information
Craga89 committed Jul 22, 2010
1 parent ecffc3a commit ecda4fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ those above, but replace _make_ with _ant_ e.g.

ant [command]

[command] is optional and can be any of the above i.e. qtip, min, pack etc.
*`[command]` is optional and can be any of the above i.e. qtip, min, pack etc.*


Building to a different directory (MAKE only)
Expand Down
14 changes: 3 additions & 11 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,8 @@ function QTip(target, options, id)
if(!self.rendered || !content) { return FALSE; }

// Append new content if its a DOM array and show it if hidden
if(content.jquery && content.length > 0)
{
if(options.content.clone) {
self.elements.content.html( content.clone(TRUE).removeAttr('id').css({ display: 'block' }) );
}
else {
if(content.jquery && content.length > 0) {
self.elements.content.append(content.css({ display: 'block' }));
}
}

// Content is a regular string, insert the new content
Expand All @@ -302,8 +296,7 @@ function QTip(target, options, id)
self.reposition(self.cache.event);

// Show the tooltip if rendering is taking place
if(self.rendered < 0)
{
if(self.rendered < 0) {
// Show tooltip on ready
if(options.show.ready || self.rendered === -2) {
self.show(self.cache.event);
Expand Down Expand Up @@ -788,7 +781,7 @@ function QTip(target, options, id)
// Only update the z-index if it has changed and tooltip is not already focused
if(!tooltip.hasClass('ui-tooltip-focus') && curIndex !== newIndex)
{
$(':not(.qtip.ui-tooltip)').each(function()
$('.qtip.ui-tooltip').each(function()
{
var api = $(this).qtip(), tooltip, elemIndex;
if(!api || !api.rendered) { return TRUE; }
Expand Down Expand Up @@ -1263,7 +1256,6 @@ $.fn.qtip.defaults = {
content: {
text: TRUE,
attr: 'title',
clone: TRUE,
title: {
text: FALSE,
button: FALSE
Expand Down

0 comments on commit ecda4fa

Please sign in to comment.