Skip to content

Instantly share code, notes, and snippets.

@pastcompute
Created June 26, 2016 09:56
Show Gist options
  • Save pastcompute/1f4b9bed29ca36d300f5de98127be275 to your computer and use it in GitHub Desktop.
Save pastcompute/1f4b9bed29ca36d300f5de98127be275 to your computer and use it in GitHub Desktop.
not quite UMD AMD thing
(function(root,factory) {
if (typeof define === 'function' && define.amd) { define(['underscore'], factory); }
else if (typeof exports === 'object') { module.exports = factory(require('underscore')); }
else { root.returnExports = factory(root.underscore); }
}(this, function(_) {
'use strict';
return {
// thing public interface
};
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment