Tuesday, 15 March 2011

javascript - Set methods inside Session in meteor.js -



javascript - Set methods inside Session in meteor.js -

let's want set session object contains method:

session.set('coolsession', { something: 1, anarray: [1,2,'three'], amethod: function() { alert('called amethod!'); homecoming 1; } })

now if phone call session.get('coolsession') get:

object {something: 1, anarray: array[3]}

and can see method gone. :(

is design or bug? guess there dangers in assigning methods sessions, i'm not quite sure be?

javascript meteor

No comments:

Post a Comment