I wasn't getting the point on custom events. Thought it would work
like observer pattern implementation in Django (commonly known as
signals) byt it is slightly different.

Thanks a lot mscdex!

On Mar 26, 4:42 am, mscdex <[email protected]> wrote:
> On Mar 25, 10:19 pm, Edgar Veiga <[email protected]> wrote:
>
> > I can't get why the listener declared on the cache.js file isn't making the
> > console.log everytime I make a request..
>
> I'm not sure what you're expecting here. In cache.js you're creating a
> new instance of RequestHandler, adding a listener, and then doing
> nothing else (the instance isn't exported or anything). Nothing is
> even requiring/referencing cache.js.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to