+ methods: {
+ withWho: function(c) {
+ if (c.from.sid == this.st.user.sid || c.from.id == this.st.user.id)
+ return c.to || this.st.tr["Any player"];
+ return c.from.name || "@nonymous";
+ },
+ getRandomnessClass: function(c) {
+ return {
+ ["random-" + c.randomness]: true
+ };
+ },
+ getCadenceClass: function(c) {
+ return {
+ "simultaneous": c.cadence.indexOf("/") >= 0
+ };
+ }
+ }