Browser events #52

Open
kvz opened this Issue Jul 8, 2011 · 0 comments

Projects

None yet

1 participant

@kvz
kvz commented Jul 8, 2011

Hey, upgraded to node 0.4 and the latest tobi via npm, but now code like:

    browser.client.on('connect'

Results in:

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
TypeError: Cannot call method 'on' of undefined
    at Object.<anonymous> (/truecode/admin/current/cakephp/app/tests/live-test/care.true.nl.js:117:16)
    at Module._compile (module.js:402:26)
    at Object..js (module.js:408:10)
    at Module.load (module.js:334:31)
    at Function._load (module.js:293:12)
    at Array.<anonymous> (module.js:421:10)
    at EventEmitter._tickCallback (node.js:126:26)

What would be the right syntax now? Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment