display : '',
toggle : function () {
- this.display = this.display == 'none' ? '': 'none';
+ this.display = (this.display == 'none' ) ? '': 'none';
+ var display = this.display;
Array.prototype.slice.call(
document.getElementsByTagName('tr')
).forEach(function(tr) {