Closed sjoerdmulder closed 13 years ago
B.T.W. im using version 0.6.1
It is supported in NowJS 0.7.
@sjoerdmulder This should indeed work fine in 0.7 . If you are still having issues with this let me know.
Thanks Eric
Hi,
I just tried again with version 0.7.2 (did a npm update now on the project), node version 0.4.10 and with the following code:
everyone.now.storage = {}; everyone.now.storage.get = function(){ console.log('Do something'); }
I get:
Cannot set property 'get' of undefined
TypeError: Cannot set property 'get' of undefined
at Object.
Also on the client i get a "Uncaught TypeError: Cannot call method 'get' of undefined " when trying to access the function in the now.ready() handler which is logic because of the previous log message
Thanks Sjoerd
2011/7/26 ericz < reply@reply.github.com>
@sjoerdmulder This should indeed work fine in 0.7 . If you are still having issues with this let me know.
Thanks Eric
Reply to this email directly or view it on GitHub: https://github.com/Flotype/now/issues/111#issuecomment-1649854
The initial example i provided (using the nested object declaration) does seem to work
@sjoerdmulder, I have reproduced this issue and am looking into a fix
@sjoerdmulder, this should now be fixed in the latest github master.
SERVER:
CLIENT:
But when trying this is get in my nodejs terminal:
And it doesnt seem todo anything...