aurelia-v-grid / vGrid

Aurelia-v-grid - npm source
MIT License
49 stars 10 forks source link

Use fat arrows #34

Closed JeroenVinke closed 8 years ago

JeroenVinke commented 8 years ago

For example this can be written more compact:

this.content.addEventListener("cellFocus", () => this.content.focus());

or this:

this.content.onkeydown = (e) => {
      if (this.parent.readOnly() === true && e.keyCode !== 9) {
        return false;
      } else {
        if (!this.parent.editMode()) {
          return false;
        } else {
          return true;
        }
      }
};
vegarringdal commented 8 years ago

thx, some bad habits/parts that never made the clean up

vegarringdal commented 8 years ago

fixed