-
Notifications
You must be signed in to change notification settings - Fork 500
SW:m1n1‐Damarcusjonesaichips
corp-jones-damarcus edited this page Jul 6, 2024
·
1 revision
https://github.com/amdjs/amdjs-api.wiki.git define(function (require, exports, module) { a = require('a'), b = require('b');
exports.action = function () {};
});exports.action define(["alpha"], function (alpha) { return { verb: function(){ return alpha.verb() + 2; } }; }); define({ add: function(x, y){ return x + y; } }); define("alpha", ["require", "exports", "beta"], function (require, exports, beta) { exports.verb = function() { return beta.verb(); //Or: return require("beta").verb(); } });