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

Commit

Permalink
Make sure we don't replace the $.fn overrides multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Aug 27, 2011
1 parent 516fd6b commit 688558c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/jquery.qtip.basic.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Sat Aug 27 16:18:00 2011 +0100
* Date: Sat Aug 27 16:20:38 2011 +0100
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -1847,7 +1847,7 @@ PLUGINS = QTIP.plugins = {

// Apply the fn overrides above
$.each(PLUGINS.fn, function(name, func) {
if(!func) { return TRUE; }
if(!func || $.fn[name+replaceSuffix]) { return TRUE; }

var old = $.fn[name+replaceSuffix] = $.fn[name];
$.fn[name] = function() {
Expand Down
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: Sat Aug 27 16:18:00 2011 +0100
* Date: Sat Aug 27 16:20:38 2011 +0100
*/

/* Core qTip styles */
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: Sat Aug 27 16:18:00 2011 +0100
* Date: Sat Aug 27 16:20:38 2011 +0100
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -1847,7 +1847,7 @@ PLUGINS = QTIP.plugins = {

// Apply the fn overrides above
$.each(PLUGINS.fn, function(name, func) {
if(!func) { return TRUE; }
if(!func || $.fn[name+replaceSuffix]) { return TRUE; }

var old = $.fn[name+replaceSuffix] = $.fn[name];
$.fn[name] = function() {
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -1784,7 +1784,7 @@ PLUGINS = QTIP.plugins = {

// Apply the fn overrides above
$.each(PLUGINS.fn, function(name, func) {
if(!func) { return TRUE; }
if(!func || $.fn[name+replaceSuffix]) { return TRUE; }

var old = $.fn[name+replaceSuffix] = $.fn[name];
$.fn[name] = function() {
Expand Down

0 comments on commit 688558c

Please sign in to comment.