UNPKG
modules
Version:
latest (0.4.0)
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
CommonJS modules for the browser
github.com/thetalecrafter/modules
thetalecrafter/modules
modules
/
nodeunit
/
test
/
amdjs
/
basic_circular
/
two.js
13 lines
(12 loc)
•
290 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
define
(
"two"
, [
"require"
,
"one"
],
function
(
require
, one
) {
return
{
size
:
"small"
,
color
:
"redtwo"
,
doSomething
:
function
(
) {
return
one.
doSomething
(); },
getOneModule
:
function
(
) {
return
one.
module
; } }; });