Skip to content

Commit

Permalink
Merge pull request #496 from ekkis/master
Browse files Browse the repository at this point in the history
node.js support
  • Loading branch information
kevindb committed Feb 20, 2017
2 parents c83202c + b8f7e0a commit bf629b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jquery.form.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
if (typeof define === 'function' && define.amd) {
// using AMD; register as anon module
define(['jquery'], factory);
} if (typeof module !== 'undefined' {
factory(require('jquery'));
} else {
// no AMD; invoke directly
factory( (typeof(jQuery) != 'undefined') ? jQuery : window.Zepto );
Expand Down

0 comments on commit bf629b2

Please sign in to comment.