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

Commit

Permalink
Fixed API enable command
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Feb 13, 2011
1 parent d5ba6a4 commit 9dfb327
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 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: Thu Feb 10 17:28:43 2011 +0000
* Date: Sat Feb 12 00:01:17 2011 +0000
*/

/* Fluid class for determining actual width in IE */
Expand Down
7 changes: 4 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: Thu Feb 10 17:28:43 2011 +0000
* Date: Sat Feb 12 00:01:17 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 @@ -1224,7 +1224,6 @@ function QTip(target, options, id, attr)
return self;
},

enable: function() { self.disable(TRUE); },
disable: function(state)
{
var c = disabled;
Expand All @@ -1243,6 +1242,8 @@ function QTip(target, options, id, attr)

return self;
},

enable: function() { self.disable(FALSE); },

destroy: function()
{
Expand Down Expand Up @@ -1389,7 +1390,7 @@ QTIP = $.fn.qtip = function(options, notation, newValue)
// Cache the event if possible
if(event && event.timeStamp) { api.cache.event = event; }

// Call APIcommand
// Check for specific API commands
if(command === 'option' && notation) {
if($.isPlainObject(notation) || newValue !== undefined) {
api.set(notation, newValue);
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: 3 additions & 2 deletions src/core.js
Expand Up @@ -1182,7 +1182,6 @@ function QTip(target, options, id, attr)
return self;
},

enable: function() { self.disable(TRUE); },
disable: function(state)
{
var c = disabled;
Expand All @@ -1201,6 +1200,8 @@ function QTip(target, options, id, attr)

return self;
},

enable: function() { self.disable(FALSE); },

destroy: function()
{
Expand Down Expand Up @@ -1347,7 +1348,7 @@ QTIP = $.fn.qtip = function(options, notation, newValue)
// Cache the event if possible
if(event && event.timeStamp) { api.cache.event = event; }

// Call APIcommand
// Check for specific API commands
if(command === 'option' && notation) {
if($.isPlainObject(notation) || newValue !== undefined) {
api.set(notation, newValue);
Expand Down

0 comments on commit 9dfb327

Please sign in to comment.