Instantly share code, notes, and snippets.

Embed
What would you like to do?
AMD loading code
var LibName = (function () {
function LibName() {
// ...
}
if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
// AMD. Register as an anonymous module.
define(function() {
'use strict';
return LibName;
});
}
return LibName;
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment