Flotype / now

NowJS makes it easy to build real-time web apps using JavaScript
http://www.nowjs.com
MIT License
1.91k stars 175 forks source link

revoke vars/functions #37

Closed dvv closed 13 years ago

dvv commented 13 years ago

Hi!

Sorry if I missed this in the docu, but how do I unset variables/functions in client context? delete this.now.foo causes segfault, this.now.foo = undefined/null causes bump at L208 of nowServerLib.js

update: this.now.foo = false works, but still...

TIA, --Vladimir

ericz commented 13 years ago

We don't handle deletes yet so = false is one way, not a very good way. Part of the deletes issue is that its hard to detect on the client side. I will look into this more for future

dvv commented 13 years ago

It's not that pressing at all

tommedema commented 13 years ago

@ericz, why did you close this issue?

ericz commented 13 years ago

You can now set to null!

ericz commented 13 years ago

Ok so now both setting to null and undefined work , but delete still does not work.

dvv commented 13 years ago

delete just looks more native. Setting to null is quite enough. Thanks!