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

Commit

Permalink
Fixed issue with .nodeType check in .set()
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Feb 23, 2011
1 parent 521f432 commit e955510
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 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: Tue Feb 22 23:23:09 2011 +0000
* Date: Wed Feb 23 00:11:30 2011 +0000
*/

/* Fluid class for determining actual width in IE */
Expand Down
4 changes: 2 additions & 2 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: Tue Feb 22 23:23:09 2011 +0000
* Date: Wed Feb 23 00:11:30 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 @@ -813,7 +813,7 @@ function QTip(target, options, id, attr)

// Set new obj value
previous = obj[0][ obj[1] ];
obj[0][ obj[1] ] = value && value.nodeType ? $(value) : value;
obj[0][ obj[1] ] = 'object' === typeof value && value.nodeType ? $(value) : value;

// Set the new params for the callback and test it against reposition
option[notation] = [obj[0], obj[1], value, previous];
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/jquery.qtip.pack.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -771,7 +771,7 @@ function QTip(target, options, id, attr)

// Set new obj value
previous = obj[0][ obj[1] ];
obj[0][ obj[1] ] = value && value.nodeType ? $(value) : value;
obj[0][ obj[1] ] = 'object' === typeof value && value.nodeType ? $(value) : value;

// Set the new params for the callback and test it against reposition
option[notation] = [obj[0], obj[1], value, previous];
Expand Down

0 comments on commit e955510

Please sign in to comment.