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

Commit

Permalink
Moved from $.css to css in many cases for optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jan 21, 2011
1 parent c3a6cdc commit 5fcdae4
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 24 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: Fri Jan 21 13:30:19 2011 +0000
* Date: Fri Jan 21 13:36:44 2011 +0000
*/

/* Fluid class for determining actual width in IE */
Expand Down
5 changes: 2 additions & 3 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: Fri Jan 21 13:30:19 2011 +0000
* Date: Fri Jan 21 13:36:44 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 @@ -209,8 +209,7 @@ function QTip(target, options, id, attr)
}

function isVisible() {
var t = tooltip[0];
return t && $.css(t, 'left') !== hideOffset && $.css(t, 'visibility') !== 'hidden';
return tooltip.css('left') !== hideOffset && tooltip.css('visibility') !== 'hidden';
}

function setWidget() {
Expand Down
32 changes: 16 additions & 16 deletions dist/jquery.qtip.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/core.js
Expand Up @@ -172,8 +172,7 @@ function QTip(target, options, id, attr)
}

function isVisible() {
var t = tooltip[0];
return t && $.css(t, 'left') !== hideOffset && $.css(t, 'visibility') !== 'hidden';
return tooltip.css('left') !== hideOffset && tooltip.css('visibility') !== 'hidden';
}

function setWidget() {
Expand Down

0 comments on commit 5fcdae4

Please sign in to comment.