i see, but it's a good practice to separate state from logic,
that way, when the state will grow, it will be "contained" and moving the
state from place to place is easier..
debugger is easier
mocking is easier
etc.


On Wed, Mar 5, 2014 at 1:45 PM, Asaf Gartner <notifications@github.com>wrote:

> In client/src/replaying/player/player_ui.coffee:
>
> > @@ -0,0 +1,103 @@
> > +EventEmitter = require('eventemitter').EventEmitter
> > +
> > +class PlayerUI extends EventEmitter
> > +  constructor: (events, document) ->
> > +    @document = document
>
> but it's not attributes. It's just some state that I need.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/iic-ninjas/ruadan/pull/10/files#r10296354>
> .
>



-- 
Danni Friedland
+972-54-7764415