This repository was archived by the owner on Oct 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ declare module Backbone {
57
57
toJSON ( ) : any ;
58
58
}
59
59
export class Collection < T > {
60
- constructor ( models ? , opts ? ) ;
60
+ constructor ( models ?, opts ?) ;
61
61
bind ( ev : string , f : Function , ctx ?: any ) : void ;
62
62
length : number ;
63
63
create ( attrs , opts ? ) : any ;
@@ -69,7 +69,7 @@ declare module Backbone {
69
69
without ( ...values : T [ ] ) : T [ ] ;
70
70
}
71
71
export class View {
72
- constructor ( options ? ) ;
72
+ constructor ( options ?) ;
73
73
$ ( selector : string ) : JQuery ;
74
74
el : HTMLElement ;
75
75
$el : JQuery ;
@@ -201,9 +201,8 @@ class TodoView extends Backbone.View {
201
201
model : Todo ;
202
202
input : JQuery ;
203
203
204
- constructor ( options ? ) {
205
- // A call to super() is needed to avoid TS17009.
206
- super ( ) ;
204
+ constructor ( options ?) {
205
+ super ( options ) ;
207
206
//... is a list tag.
208
207
this . tagName = "li" ;
209
208
@@ -216,8 +215,6 @@ class TodoView extends Backbone.View {
216
215
"blur .todo-input" : "close"
217
216
} ;
218
217
219
- super ( options ) ;
220
-
221
218
// Cache the template function for a single item.
222
219
this . template = _ . template ( $ ( '#item-template' ) . html ( ) ) ;
223
220
You can’t perform that action at this time.
0 commit comments