diff --git a/.gitignore b/.gitignore index 8d4ae25..b4a1990 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +.idea bower_components diff --git a/bower.json b/bower.json index 342dd39..b80b61a 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "paper-datatable", - "version": "1.0.0", + "version": "1.0.1", "authors": [ "David Mulder " ], diff --git a/paper-datatable.html b/paper-datatable.html index d1c8907..de8e4b9 100644 --- a/paper-datatable.html +++ b/paper-datatable.html @@ -510,7 +510,7 @@ _queryAndSetColumns: function(){ var columns = this.queryAllEffectiveChildren('paper-datatable-column'); - columns.forEach((column) => { + columns.forEach(function (column) { if(!column.beenAttached.state.ready){ column.parentNodeRef = this; this.async(function(){ @@ -518,8 +518,8 @@ column.beenAttached.ready(); }); } - }); - this.set('_columns', columns.filter((column) => !column.inactive)); + }.bind(this)); + this.set('_columns', columns.filter(function (column) { return !column.inactive })); this.async(function(){ this._applySortedIndicatorsToDOM(); }); @@ -564,7 +564,7 @@ var cells = Polymer.dom(this.root).querySelectorAll('.bound-cell'); cells.forEach(this._resetCell.bind(this)); this.$.rowRepeat.render(); - Polymer.dom(this.root).querySelectorAll('#cellRepeat').forEach((cr) => cr.render()); + Polymer.dom(this.root).querySelectorAll('#cellRepeat').forEach(function (cr) { return cr.render() }); }, _resetCell: function(cell){ @@ -587,7 +587,7 @@ var cells = Polymer.dom(row).querySelectorAll('.bound-cell'); - cells.forEach((cell) => { + cells.forEach(function (cell) { if(!cell.dataColumn){ console.log(cell); @@ -645,7 +645,7 @@ //not too happy about this 'hack', but it will have to do for the moment var cells = Polymer.dom(this.root).querySelectorAll('.bound-cell'); if(cells.length > 0){ - cells.forEach((cell) => cell.setAttribute('data-row-key', '')); + cells.forEach(function (cell) { return cell.setAttribute('data-row-key', ''); }); this._restructureData(); } } @@ -1085,7 +1085,7 @@ if(this._columns.length > 0){ var ths = Polymer.dom(this.root).querySelectorAll('th'); - ths.forEach((th) => { + ths.forEach(function (th) { if(th.dataColumn){ var column = th.dataColumn; if(th.scrollWidth > th.offsetWidth){