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

Commit

Permalink
Fix Safari 6 issue when setting .corner attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Aug 6, 2012
1 parent e784b2c commit 1593be0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/basic/jquery.qtip.css
@@ -1,4 +1,4 @@
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-08-04
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-08-06
* http://craigsworks.com/projects/qtip2/
* Copyright (c) 2012 Craig Michael Thompson; Licensed MIT, GPL */

Expand Down
2 changes: 1 addition & 1 deletion dist/basic/jquery.qtip.js
@@ -1,4 +1,4 @@
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-08-04
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-08-06
* http://craigsworks.com/projects/qtip2/
* Copyright (c) 2012 Craig Michael Thompson; Licensed MIT, GPL */

Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.qtip.css
@@ -1,4 +1,4 @@
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-08-04
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-08-06
* http://craigsworks.com/projects/qtip2/
* Copyright (c) 2012 Craig Michael Thompson; Licensed MIT, GPL */

Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.js
@@ -1,4 +1,4 @@
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-08-04
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-08-06
* http://craigsworks.com/projects/qtip2/
* Copyright (c) 2012 Craig Michael Thompson; Licensed MIT, GPL */

Expand Down Expand Up @@ -2699,7 +2699,7 @@ PLUGINS.tip.sanitize = function(options)
if(style && 'tip' in style) {
opts = options.style.tip;
if(typeof opts !== 'object'){ options.style.tip = { corner: opts }; }
if(!(/string|boolean/i).test(typeof opts.corner)) { opts.corner = TRUE; }
if(!(/string|boolean/i).test(typeof opts['corner'])) { opts['corner'] = TRUE; }
if(typeof opts.width !== 'number'){ delete opts.width; }
if(typeof opts.height !== 'number'){ delete opts.height; }
if(typeof opts.border !== 'number' && opts.border !== TRUE){ delete opts.border; }
Expand Down
2 changes: 1 addition & 1 deletion src/tips/tips.js
Expand Up @@ -598,7 +598,7 @@ PLUGINS.tip.sanitize = function(options)
if(style && 'tip' in style) {
opts = options.style.tip;
if(typeof opts !== 'object'){ options.style.tip = { corner: opts }; }
if(!(/string|boolean/i).test(typeof opts.corner)) { opts.corner = TRUE; }
if(!(/string|boolean/i).test(typeof opts['corner'])) { opts['corner'] = TRUE; }
if(typeof opts.width !== 'number'){ delete opts.width; }
if(typeof opts.height !== 'number'){ delete opts.height; }
if(typeof opts.border !== 'number' && opts.border !== TRUE){ delete opts.border; }
Expand Down

0 comments on commit 1593be0

Please sign in to comment.