Skip to content

Instantly share code, notes, and snippets.

@Daniel-Wiedemann
Created December 18, 2014 12:13
Show Gist options
  • Save Daniel-Wiedemann/3ee257679d81d6da79a4 to your computer and use it in GitHub Desktop.
Save Daniel-Wiedemann/3ee257679d81d6da79a4 to your computer and use it in GitHub Desktop.
JavaScript Modul definition
if (typeof define === 'function' && define.amd) {
define(['jquery'], wunderBarFactory);
} else if (typeof exports === 'object') {
module.exports = wunderBarFactory(require('jquery'));
} else {
window.WunderBar = wunderBarFactory(jQuery);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment