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

Commit

Permalink
Add AMD support as per TimTucker's request.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Feb 23, 2012
1 parent 7862f79 commit 667a7b6
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 17 deletions.
19 changes: 14 additions & 5 deletions dist/jquery.qtip.basic.js
Expand Up @@ -9,21 +9,30 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Tue Feb 21 04:31:31 2012 +0000
* Date: Tue Feb 21 17:23:25 2012 +0000
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
/*global window: false, jQuery: false, console: false */
/*global window: false, jQuery: false, console: false, define: false */


(function($, window, undefined) {
// Uses AMD or browser globals to create a jQuery plugin.
(function(factory) {
if(typeof define === 'function' && define.amd) {
define(['jquery'], factory);
}
else {
factory(jQuery);
}
}
(function($) {

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/

// Munge the primitives - Paul Irish tip
var TRUE = true,
FALSE = false,
NULL = null,
undefined,

// Shortcut vars
QTIP, PLUGINS, MOUSE,
Expand Down Expand Up @@ -1980,4 +1989,4 @@ QTIP.defaults = {
};


}(jQuery, window));
}));
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 Feb 21 04:31:31 2012 +0000
* Date: Tue Feb 21 17:23:25 2012 +0000
*/

/* Core qTip styles */
Expand Down
19 changes: 14 additions & 5 deletions dist/jquery.qtip.js
Expand Up @@ -9,21 +9,30 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Tue Feb 21 04:31:31 2012 +0000
* Date: Tue Feb 21 17:23:25 2012 +0000
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
/*global window: false, jQuery: false, console: false */
/*global window: false, jQuery: false, console: false, define: false */


(function($, window, undefined) {
// Uses AMD or browser globals to create a jQuery plugin.
(function(factory) {
if(typeof define === 'function' && define.amd) {
define(['jquery'], factory);
}
else {
factory(jQuery);
}
}
(function($) {

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/

// Munge the primitives - Paul Irish tip
var TRUE = true,
FALSE = false,
NULL = null,
undefined,

// Shortcut vars
QTIP, PLUGINS, MOUSE,
Expand Down Expand Up @@ -3239,4 +3248,4 @@ $.extend(TRUE, QTIP.defaults, {
});


}(jQuery, window));
}));
4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions src/intro.js
@@ -1,15 +1,24 @@
/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
/*global window: false, jQuery: false, console: false */
/*global window: false, jQuery: false, console: false, define: false */


(function($, window, undefined) {
// Uses AMD or browser globals to create a jQuery plugin.
(function(factory) {
if(typeof define === 'function' && define.amd) {
define(['jquery'], factory);
}
else {
factory(jQuery);
}
}
(function($) {

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/

// Munge the primitives - Paul Irish tip
var TRUE = true,
FALSE = false,
NULL = null,
undefined,

// Shortcut vars
QTIP, PLUGINS, MOUSE,
Expand Down
2 changes: 1 addition & 1 deletion src/outro.js
@@ -1,2 +1,2 @@

}(jQuery, window));
}));

0 comments on commit 667a7b6

Please sign in to comment.