Jxck 7/10/2017

EventTarget の継承可能化による EventEmitter の代替

Read Original

DOM仕様でEventTargetの構築・継承が可能になったことで、Node.jsのEventEmitterをブラウザに移植する必要がなくなることを解説。EventTargetを継承したクラスの作成方法や、EventEmitterとのメソッド名の互換性を確保する方法について、具体的なコード例を交えて説明しています。

EventTarget の継承可能化による EventEmitter の代替

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
ServiceNow and Microsoft Copilot
Marius Sandbu 1 votes
2
The Learning Loop and LLMs
Martin Fowler 1 votes