Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created Jul 9, 2017
Embed
What would you like to do?
var HelloClass = h5.cls.RootClass.extend(function (super_) {
return {
// クラス名(完全修飾名)
name: 'HelloClass',
// 動的拡張を可能にする
isDynamic: true,
// クラスのメソッド定義
method: {
constructor: function (params) {
// 親クラスのコンストラクタ呼び出し
super_.constructor.call(this);
}
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment