3.0 source code

This commit is contained in:
agolybev
2015-04-28 17:59:00 +03:00
parent c69fd34bdd
commit 7b3b2248e5
16311 changed files with 1445974 additions and 3108429 deletions

View File

@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<title>requirejs: Cycle: Dupe Dependencies Test</title>
<script type="text/javascript" src="../../doh/runner.js"></script>
<script type="text/javascript" src="../../doh/_browserRunner.js"></script>
<script src="../../../require.js"></script>
<script>
require(['func'], function(func) {
doh.register(
'circularDupe',
[
function circularDupe(t){
t.is('hello world suffix', func('world'));
}
]
);
doh.run();
});
</script>
</head>
<body>
<h1>requirejs: Cycle: Dupe Dependencies Test</h1>
<p>Handles a cycle where part of the cycle ends up with the cycle dependency
twice in the dependency array.</p>
<p>Check console for messages</p>
</body>
</html>

View File

@@ -0,0 +1,9 @@
define(function(require, exports) {
exports.makeMessage = function (title) {
return 'hello ' + title + ' ' + require('func').suffix;
};
exports.justSuffix = function() {
return require('func').suffix;
};
});

View File

@@ -0,0 +1,10 @@
define(['exported'], function (exported) {
function func(title) {
return exported.makeMessage(title);
}
func.suffix = 'suffix';
return func;
});