vis : '',
toggle : function()
{
- this.vis = this.vis == '' ? 'none : '';
+ this.vis = this.vis == '' ? 'none' : '';
var vis = this.vis;
+ // new browsers only...
Array.prototype.slice.call(
document.getElementsByClassName('expandable')
).forEach(function(e) {