bashoto-js
Version:
Bashoto Javascript client
22 lines (17 loc) • 485 B
JavaScript
/*global initBashotoCore initBashotoTopic */
var initBashoto = function (context) {
initBashotoCore(context);
initBashotoTopic(context);
return context.Bashoto;
};
if (typeof define === 'function' && define.amd) {
// Expose Library as an AMD module if it's loaded with RequireJS or
// similar.
define(function () {
return initBashoto({});
});
} else {
// Load Library normally (creating a Library global) if not using an AMD
// loader.
initBashoto(this);
}