Skip to content

Instantly share code, notes, and snippets.

@gigafied
Created July 29, 2012 19:18
Show Gist options
  • Save gigafied/3201263 to your computer and use it in GitHub Desktop.
Save gigafied/3201263 to your computer and use it in GitHub Desktop.
(function(){
var staticProps = {
SOME_PROP : "someVal"
};
minion.define("example", {
Example : minion.extend("minion.Class", {
__static : {
SOME_PROP : "someVal"
},
init : function () {
var Example = minion.get("example.Example");
console.log(Example.SOME_PROP);
console.log(staticProps.SOME_PROP);
console.log(this.constructor.SOME_PROP);
}
})
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment