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,5 @@
define(function (require) {
return {
name: 'a'
};
});

View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>require.js: Trailing Comma Test</title>
<script src="../doh/runner.js"></script>
<script src="../doh/_browserRunner.js"></script>
<script data-main="trailingComma" src="../../require.js"></script>
</head>
<body>
<h1>require.js: Trailing Comma Test</h1>
<p>Make sure a trailing comma in IE does not cause an error in the loader.
Info in <a href="https://github.com/jrburke/requirejs/issues/299">Issue 299</a>.</p>
<p>Check console for messages</p>
</body>
</html>

View File

@@ -0,0 +1,13 @@
//Trailing comma is there ON PURPOSE
require(['a',], function(a) {
doh.register(
"trailingComma",
[
function trailingComma(t){
t.is('a', a.name, 'a.name is a');
}
]
);
doh.run();
});