After a lot of fiddling , instead of using
chan.setProperty('foo', 'bar');
> var p = chan.getProperty('foo');
I've used
> chan.properties['foo'] = 'bar';
> var p = chan.properties['foo'];
And it worked.
On Monday, October 7, 2013 5:06:42 PM UTC+3, Yaron Kufert wrote:
>
> Hi there,
>
> I've recently updated the ape server from 1.01dev to 1.2, and the
> *setProperty setProperty
> *function doesn't work as it use to. when running the following code:
>
> Ape.log("creating a new channel: " + cr);
>> var chan = Ape.mkChan(cr);
>> Ape.log(chan);
>> chan.setProperty('foo', 'bar');
>> var p = chan.getProperty('foo');
>> Ape.log('>>>>>> '+p);
>
>
> I get this log:
>
> creating a new channel: smj924
>> ----[object channel]----
>> ({
>> properties: {},
>> pipe: {},
>> userslist: {}
>> })
>> >>>>>> undefined
>
>
> Is *setProperty* deprecated? am I doing something wrong?
>
> thanks!
>
--
--
You received this message because you are subscribed to the Google
Groups "APE Project" 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/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/
---
You received this message because you are subscribed to the Google Groups "APE
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.