use Object.setPrototypeOf() instead of __proto__

This commit is contained in:
Jonathan Ong 2015-02-01 16:39:44 -08:00
parent 963d46e46b
commit 5b7587bb7e

View file

@ -51,7 +51,7 @@ function Application() {
* Inherit from `Emitter.prototype`. * Inherit from `Emitter.prototype`.
*/ */
Application.prototype.__proto__ = Emitter.prototype; Object.setPrototypeOf(Application.prototype, Emitter.prototype);
/** /**
* Shorthand for: * Shorthand for: