Created
May 1, 2015 23:48
-
-
Save goatslacker/dbff77fe01a4cc38288d 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
class XStore { | |
static displayName = 'XStore' | |
constructor() { | |
this.foo = 'bar' | |
this.exportPublicMethods({ | |
getFoo: _ => this.foo | |
}) | |
} | |
} | |
alt.createStore(XStore).getFoo() === 'bar' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment