-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EventDispatcher を外部に公開して欲しい #268
Comments
Mix-in API(h5.u.obj.mix())を追加し、EventDispatcherをMixinの一つとして公開することとします。 |
Mix-inのAPIを変更します。
|
h5.mixinのテストケース作成しました。 hifive#268 h5.mixin.eventDispatcherを作成しました。 EventDispatcherをh5internalに公開してh5.mixin.jsで使用しています。 h5.mixin.eventDispatcherのテストは未追加です。
対応しました。
でEventDispatcherの機能を持つオブジェクトを作成できます。 EventDispatcherの機能をプロトタイプに持つクラスを作成したい場合は、以下のようにprototypeオブジェクトにmixinすることで作成できます。
|
h5.core.data.js に定義されている EventDispatcher を継承して独自のクラスを作成したいのですが、EventDispatcher を hifive の外から取得することができませんでした。
EventDispatcher を外部に公開してもらうことはできないでしょうか?
The text was updated successfully, but these errors were encountered: