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

Commit

Permalink
Updated iOS detection to include iPhone's without OS version specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Mar 8, 2011
1 parent 4cc07ce commit cb7787c
Show file tree
Hide file tree
Showing 5 changed files with 14 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 Mar 8 21:18:55 2011 +0000
* Date: Tue Mar 8 21:20:42 2011 +0000
*/

/* Fluid class for determining actual width in IE */
Expand Down
7 changes: 5 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 Mar 8 21:18:55 2011 +0000
* Date: Tue Mar 8 21:20:42 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 @@ -1545,7 +1545,10 @@ PLUGINS = QTIP.plugins = {
/*
* iOS 4.0 and below scroll fix detection used in offset() function.
*/
iOS: parseFloat(((/CPU.+OS ([0-9_]{3}).*AppleWebkit.*Mobile/i.exec(navigator.userAgent)) || [0,'4_2'])[1].replace('_','.')) < 4.1,
iOS: parseFloat(
('' + (/CPU.*OS (3_2|4_0)|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent) || [0,'4_2'])[1])
.replace('undefined', '3_2').replace('_','.')
) < 4.1,

/*
* jQuery-secpfic $.fn overrides
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.

5 changes: 4 additions & 1 deletion src/core.js
Expand Up @@ -1503,7 +1503,10 @@ PLUGINS = QTIP.plugins = {
/*
* iOS 4.0 and below scroll fix detection used in offset() function.
*/
iOS: parseFloat(((/CPU.+OS ([0-9_]{3}).*AppleWebkit.*Mobile/i.exec(navigator.userAgent)) || [0,'4_2'])[1].replace('_','.')) < 4.1,
iOS: parseFloat(
('' + (/CPU.*OS (3_2|4_0)|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent) || [0,'4_2'])[1])
.replace('undefined', '3_2').replace('_','.')
) < 4.1,

/*
* jQuery-secpfic $.fn overrides
Expand Down

0 comments on commit cb7787c

Please sign in to comment.