This would generate an instance of subcls that attaches wrappers for all of underlying's current listeners. After the "upgrade", all changes to the returned instance will not be proxied to underlying.
This would be handy if someone generated a BaseEventEmitter with certain events already defined, but you know that you're working in a different environment and want to use a subclass.
This would generate an instance of subcls that attaches wrappers for all of underlying's current listeners. After the "upgrade", all changes to the returned instance will not be proxied to underlying.
This would be handy if someone generated a BaseEventEmitter with certain events already defined, but you know that you're working in a different environment and want to use a subclass.