Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created July 9, 2017 07:06
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 goofmint/1b0163d4bc712b71e8d658c85c19793d to your computer and use it in GitHub Desktop.
Save goofmint/1b0163d4bc712b71e8d658c85c19793d to your computer and use it in GitHub Desktop.
var HelloClass = h5.cls.RootClass.extend(function (super_) {
return {
// クラス名(完全修飾名)
name: 'HelloClass',
// クラスのフィールド定義
field: {
_name: null,
_scale: {
defaultValue: 0
},
_read: {
defaultValue: "This is read only"
}
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment