Commit 6e57d39d authored by Arthur Verschaeve's avatar Arthur Verschaeve

Typescript-backbone: small code style tweaks

We do not have a strict typescript style guide but this is at least
consistent.
parent d1d153f8
...@@ -181,7 +181,7 @@ class TodoView extends Backbone.View { ...@@ -181,7 +181,7 @@ class TodoView extends Backbone.View {
static ENTER_KEY:number = 13; static ENTER_KEY:number = 13;
static ESC_KEY:number = 27; static ESC_KEY:number = 27;
constructor (options? ) { constructor(options? ) {
//... is a list tag. //... is a list tag.
this.tagName = 'li'; this.tagName = 'li';
...@@ -277,7 +277,7 @@ class AppView extends Backbone.View { ...@@ -277,7 +277,7 @@ class AppView extends Backbone.View {
footerElement: HTMLElement; footerElement: HTMLElement;
statsTemplate: (params: any) => string; statsTemplate: (params: any) => string;
constructor () { constructor() {
super(); super();
// Instead of generating a new element, bind to the existing skeleton of // Instead of generating a new element, bind to the existing skeleton of
// the App already present in the HTML. // the App already present in the HTML.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment