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

Commit

Permalink
Fixed jQuery UI .remove() conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Nov 4, 2011
1 parent 71d8b11 commit 7d7391d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
8 changes: 5 additions & 3 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: Tue Nov 1 21:07:13 2011 +0000
* Date: Tue Nov 1 21:07:32 2011 +0000
*/

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

/*
* Taken directly from jQuery 1.8.2 widget source code
* Trigger 'remove' event on all elements on removal if jQuery UI isn't present
* Trigger 'remove' event on all elements on removal
*/
remove: $.ui ? NULL : function( selector, keepData ) {
remove: function( selector, keepData ) {
if($.ui) { return; } // We don't need to do this if jQuery UI is present!

$(this).each(function() {
if (!keepData) {
if (!selector || $.filter( selector, [ this ] ).length) {
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: Tue Nov 1 21:07:13 2011 +0000
* Date: Tue Nov 1 21:07:32 2011 +0000
*/

/* Core qTip styles */
Expand Down
8 changes: 5 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: Tue Nov 1 21:07:13 2011 +0000
* Date: Tue Nov 1 21:07:32 2011 +0000
*/

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

/*
* Taken directly from jQuery 1.8.2 widget source code
* Trigger 'remove' event on all elements on removal if jQuery UI isn't present
* Trigger 'remove' event on all elements on removal
*/
remove: $.ui ? NULL : function( selector, keepData ) {
remove: function( selector, keepData ) {
if($.ui) { return; } // We don't need to do this if jQuery UI is present!

$(this).each(function() {
if (!keepData) {
if (!selector || $.filter( selector, [ this ] ).length) {
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions src/core.js
Expand Up @@ -1794,9 +1794,11 @@ PLUGINS = QTIP.plugins = {

/*
* Taken directly from jQuery 1.8.2 widget source code
* Trigger 'remove' event on all elements on removal if jQuery UI isn't present
* Trigger 'remove' event on all elements on removal
*/
remove: $.ui ? NULL : function( selector, keepData ) {
remove: function( selector, keepData ) {
if($.ui) { return; } // We don't need to do this if jQuery UI is present!

$(this).each(function() {
if (!keepData) {
if (!selector || $.filter( selector, [ this ] ).length) {
Expand Down

0 comments on commit 7d7391d

Please sign in to comment.