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

Commit

Permalink
Added 'options' alias for .qtip('option')
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Apr 4, 2011
1 parent 54c41ff commit 6ed8f67
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/jquery.qtip.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Mon Apr 4 17:47:28 2011 +0100
* Date: Mon Apr 4 17:51:01 2011 +0100
*/

/* Fluid class for determining actual width in IE */
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Mon Apr 4 17:47:28 2011 +0100
* Date: Mon Apr 4 17:51:01 2011 +0100
*/

"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 @@ -1397,7 +1397,7 @@ QTIP = $.fn.qtip = function(options, notation, newValue)
if(event && event.timeStamp) { api.cache.event = event; }

// Check for specific API commands
if(command === 'option' && notation) {
if((command === 'option' || command === 'options') && 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.

2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ QTIP = $.fn.qtip = function(options, notation, newValue)
if(event && event.timeStamp) { api.cache.event = event; }

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

0 comments on commit 6ed8f67

Please sign in to comment.