jdewit / bootstrap-timepicker

[Deprecated] A simple timepicker component for Twitter Bootstrap
MIT License
1.64k stars 1.09k forks source link

remove need for jQuery global #352

Open MartijnR opened 8 years ago

MartijnR commented 8 years ago

e.g. by wrapping plugin like this:

(function(factory){
    if (typeof define === "function" && define.amd) {
        define(["jquery"], factory);
    } else if (typeof exports === 'object') {
        factory(require('jquery'));
    } else {
        factory(jQuery);
    }
}(function($, undefined){
  // the plugin code
}));
MartijnR commented 8 years ago

This PR would close this: https://github.com/jdewit/bootstrap-timepicker/pull/350