I have a private class rs. After its definition I have the following code.
rs.prototype = new EventTarget();
rs.prototype.constructor = rs;
EventTarget defines a fire method. From within an rs method I am trying to call self.fire(..) The call crashes with "undefined is not a function"
Within Chrome when I put the mouse over self it gives
__proto__: rs
opening that I have
constructor: function rs(...
under that is
prototype: EventTarget
under that is
__proto__: EventTarget
under that is
fire: function (..
How do I call the fire function? Is there a problem because this is a private class?