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

Commit

Permalink
Fixed small sanitization error
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jan 4, 2011
1 parent 1cbe950 commit 2da0669
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 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 Jan 4 01:52:57 2011 +0000
* Date: Tue Jan 4 02:00:00 2011 +0000
*/

.ui-tooltip-accessible{
Expand Down
12 changes: 7 additions & 5 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 Jan 4 01:52:57 2011 +0000
* Date: Tue Jan 4 02:00:00 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 @@ -94,10 +94,12 @@ function sanitizeOptions(opts)
}
}

if('style' in opts && 'object' !== typeof opts.style) {
opts.style = {
classes: opts.style
};
if('style' in opts) {
if('object' !== typeof opts.style) {
opts.style = {
classes: opts.style
};
}
}

// Sanitize plugin options
Expand Down
4 changes: 2 additions & 2 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.

10 changes: 6 additions & 4 deletions src/core.js
Expand Up @@ -61,10 +61,12 @@ function sanitizeOptions(opts)
}
}

if('style' in opts && 'object' !== typeof opts.style) {
opts.style = {
classes: opts.style
};
if('style' in opts) {
if('object' !== typeof opts.style) {
opts.style = {
classes: opts.style
};
}
}

// Sanitize plugin options
Expand Down

0 comments on commit 2da0669

Please sign in to comment.