Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache Cordova #106

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
bower_components
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paper-datatable",
"version": "1.0.0",
"version": "1.0.1",
"authors": [
"David Mulder <[email protected]>"
],
Expand Down
14 changes: 7 additions & 7 deletions paper-datatable.html
Original file line number Diff line number Diff line change
Expand Up @@ -510,16 +510,16 @@

_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(){
column._registerEvilFunctions();
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();
});
Expand Down Expand Up @@ -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){
Expand All @@ -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);
Expand Down Expand Up @@ -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();
}
}
Expand Down Expand Up @@ -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){
Expand Down