- return {
- ["random-" + c.randomness]: true
- };
- },
- getCadenceClass: function(c) {
- return {
- "simultaneous": c.cadence.indexOf("/") >= 0
- };
+ const opts = c.options;
+ if (opts.randomness === undefined && opts.random === undefined)
+ return {};
+ if (opts.randomness !== undefined)
+ return { ["random-" + opts.randomness]: true };
+ return { ["random-" + (opts.random ? 2 : 0)]: true };