require(['jquery', 'amplify'],
function($, amplify){
console.log('jquery=' + $);
console.log('amplify=' + amplify);
}
);
define('amplify', ['amplify/amplify'], function (main) { return main; });
define("amplify/amplify", function(){ });
(function(root, doc, factory) {
if (typeof define === "function" && define.amd) {
// AMD. Register as an anonymous module.
define(["jquery"], function($) {
return factory($, root, doc);
});
} else {
// Browser globals
factory(root.jQuery, root, doc);
}
}(this, document, function($, global, document, undefined) {
... amplify codes ...
}( amplify, jQuery ) );
return amplify;
}));
--
You received this message because you are subscribed to the Google Groups "jamjs" group.
To post to this group, send an email to ja...@googlegroups.com.
To unsubscribe from this group, send email to jamjs+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/jamjs/-/6SD4reRR6BkJ.
For more options, visit https://groups.google.com/groups/opt_out.