Skip to content

Instantly share code, notes, and snippets.

@gossi
Created October 23, 2011 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gossi/1307151 to your computer and use it in GitHub Desktop.
Save gossi/1307151 to your computer and use it in GitHub Desktop.
Deadlock Problem in JS.Class
<!doctype html>
<html>
<head>
<title>JS.Class loader</title>
<script type="text/javascript">JSCLASS_PATH = 'lib/jsclass-3.0.4/min'</script>
<script type="text/javascript" src="lib/jsclass-3.0.4/min/loader-browser.js"></script>
</head>
<body>
<script type="text/javascript">
JS.require('JS.Class', function() {
JS.Packages(function () {
this.file('A.js').provides('A').uses('B');
this.file('B.js').provides('B').uses('A');
});
JS.require('A', function () {
console.log("ready");
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment