diff --git a/_src/selectordie.js b/_src/selectordie.js index 59d0063..ab9a88a 100644 --- a/_src/selectordie.js +++ b/_src/selectordie.js @@ -15,7 +15,15 @@ * * =========================================================== */ -; (function ($) { +; (function (factory) { + if ( typeof define === "function" && defined.amd ) { + define(["jquery"], factory); + } else if ( typeof exports === "object" ) { + module.exports = factory(require("jquery")); + } else { + factory(jQuery); + } + } (function ($) { "use strict"; $.fn.selectOrDie = function (method) { @@ -647,4 +655,4 @@ } }; -})(jQuery); +}));