Created
March 24, 2018 20:49
-
-
Save ekelokorpi/e2f26e5d9d33e7b1d60d653fd87552f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
game.createClass('A', { | |
init: function() { | |
this.obj = new game.B(); | |
} | |
}); | |
game.createClass('B', { | |
test: 'hello' | |
}); | |
var a = new game.A(); | |
console.log(a.obj.test); // hello |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment