Navigation Menu

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

Commit

Permalink
More attr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jan 20, 2011
1 parent ed8872c commit 0dac7bf
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion dist/jquery.qtip.css
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Thu Jan 20 22:22:50 2011 +0000
* Date: Thu Jan 20 23:38:37 2011 +0000
*/

/* Fluid class for determining actual width in IE */
Expand Down
8 changes: 4 additions & 4 deletions dist/jquery.qtip.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Thu Jan 20 22:22:50 2011 +0000
* Date: Thu Jan 20 23:38:37 2011 +0000
*/

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
Expand Down Expand Up @@ -1497,12 +1497,12 @@ $.each({
api = $.data(self, 'qtip');

if(attr === title) {
if(arguments.length === 1) {
if(arguments.length < 2) {
return $.data(self, oldtitle);
}
else if(api) {
else if(typeof api === 'object') {
// If qTip is rendered and title was originally used as content, update it
if(api.rendered && api.options.content.attr === title && api.cache.attr) {
if(api && api.rendered && api.options.content.attr === title && api.cache.attr) {
api.set('content.text', val);
}

Expand Down

0 comments on commit 0dac7bf

Please sign in to comment.