Skip to content

Commit

Permalink
Fix AMD support. Tested with both builds, optimised and unoptimised.
Browse files Browse the repository at this point in the history
  • Loading branch information
amazeplc committed Aug 23, 2014
1 parent ea6f550 commit 3295176
Show file tree
Hide file tree
Showing 2 changed files with 412 additions and 418 deletions.
11 changes: 4 additions & 7 deletions jquery.velocity.js
Expand Up @@ -10,16 +10,13 @@
module.exports = factory(window.Velocity ? window.jQuery : require("jquery"));
/* AMD module. */
} else if (typeof define === "function" && define.amd) {
if (window.Velocity) {
define(factory);
} else {
define([ "jquery" ], factory);
}
define(factory);
/* Browser globals. */
} else {
factory(window.jQuery);
factory();
}
}(function (jQuery) {
}(function () {
var jQuery = window.jQuery;
return function (global, window, document, undefined) {
/*
Structure:
Expand Down

0 comments on commit 3295176

Please sign in to comment.