'use strict';module.metadata={"stability":"stable"};const{on,once,off,setListeners}=require('./core');const{method,chainable}=require('../lang/functional/core');const{Class}=require('../core/heritage');const EventTarget=Class({initialize:function initialize(options){setListeners(this,options);},on:chainable(method(on)),once:chainable(method(once)),removeListener:function removeListener(type,listener){


off(this,type,listener);return this;}, off:chainable(method(off))});exports.EventTarget=EventTarget;