Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #400 from timtucker/patch-4
Browse files Browse the repository at this point in the history
Update src/core.js
  • Loading branch information
Craga89 committed Sep 4, 2012
2 parents 7f9f7af + 73d82a6 commit 1bdc6f3
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/core.js
Expand Up @@ -1639,15 +1639,13 @@ PLUGINS = QTIP.plugins = {
if(arguments.length < 2) {
return $.attr(self, oldtitle);
}
else {
// If qTip is rendered and title was originally used as content, update it
if(api && api.options.content.attr === title && api.cache.attr) {
api.set('content.text', val);
}

// Use the regular attr method to set, then cache the result
return this.attr(oldtitle, val);
// If qTip is rendered and title was originally used as content, update it
if(api && api.options.content.attr === title && api.cache.attr) {
api.set('content.text', val);
}

// Use the regular attr method to set, then cache the result
return this.attr(oldtitle, val);
}
}

Expand Down

0 comments on commit 1bdc6f3

Please sign in to comment.