Olivier BONNAURE
unread,Dec 2, 2010, 9:44:39 AM12/2/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to traits.js
I'm doing something Like That :
function Game(nick, room, pos) {
return Trait.create( // create an instance of a trait
Object.prototype, // that inherits from Object.prototype
Trait.compose(
Trait({
socket: new io.Socket(null, {rememberTransport: false, port:
8090}),
nick: nick,
room: room,
pos: pos
}),
clone(TCoinche)
)
);
}
var game = new Game("oli", "1", "x");
game.nick = "sophie";
game.nick // still contain "oli"
It works fine on safari (mac) but not on google chrome (windows or
mac)
How can I modify this nick property ?