1.2.4
New in 1.2.4:
- New storage methods setItem, getItem, removeItem with JSONify inside
- Direct localStorage changed to window.localStorage
- Fixed emit bug (arguments)
- New configuration duel.noWarnings
/** Turn off errors for debug */
duel.noWarnings = false;
/** New storage methods example */
var ch = duel.channel('demo');
ch.setItem('x', 10);
ch.setItem('y', {'a': true});
ch.getItem('x'); // 10
ch.getItem('y'); // Object {'a': true}