Skip to content

Instantly share code, notes, and snippets.

@voldyman
Created April 27, 2014 15:24
Show Gist options
  • Save voldyman/11348397 to your computer and use it in GitHub Desktop.
Save voldyman/11348397 to your computer and use it in GitHub Desktop.
what modules in js should be like
<body>
<script src="classes2.js"></script>
<script>
tri.module(
'pentagine.core'
).defines(function() {
this.price = 10;
this.getData = function() {
return this.price;
}
});
tri.module(
'pentagine.drawing'
).requires(
'pentagine.core'
).defines(function() {
console.log(pentagine.core.price);
});
tri.module(
'pentagine.camera'
).requires(
'pentagine.core',
'pentagine.drawing'
).defines(function() {
console.log(pentagine.core.price + ' price');
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment