nowjs.getClient occasionally fails

36 views
Skip to first unread message

maxi

unread,
Sep 20, 2011, 5:48:00 AM9/20/11
to nowjs
ERROR:

{ stack: [Getter/Setter],
arguments: [ 'name', undefined ],
type: 'non_object_property_load',
message: [Getter/Setter] }
TypeError: Cannot read property 'name' of undefined

CODE:

everyone.now.distributeUp= function(clientId, groupName){
//console.log(clientId);
nowjs.getClient( clientId, function() {
nowjs.getGroup(groupName).now.receiveUp(this.now.name);
});
};

any idea?

thanks

Eric Zhang

unread,
Sep 21, 2011, 12:35:18 PM9/21/11
to no...@googlegroups.com
Hi Maxi,

How frequently does it fail? Is there a pattern to it at all?

Thanks,
Eric
--
Co-Founder @ Flotype, makers of NowJS

maxi

unread,
Sep 21, 2011, 4:09:33 PM9/21/11
to nowjs
sorry there was a bug in my code :-)
i called an invalid clientId

Thanks
Maxi
Reply all
Reply to author
Forward
0 new messages