Skip to content

Instantly share code, notes, and snippets.

Avatar

Kris Meister krismeister

View GitHub Profile
View RequireJs pattern
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery', 'mb/core', 'responsive/lib/jquery.cookie'], factory);
} else {
// Browser globals (root is window)
factory(root.jQuery, root.mb);
}
}(this,