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

Commit

Permalink
Update src/core.js
Browse files Browse the repository at this point in the history
Remove unnecessary else
  • Loading branch information
timtucker committed Sep 4, 2012
1 parent 7f9f7af commit 73d82a6
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 73d82a6

Please sign in to comment.