-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
Description
TypeScript Version:
1.8.10
Code
export class BaseLayoutModel extends BaseModel {
constructor(attributes?: any, options?: any) {
super(attributes, options);
}
}
export class BaseModel extends Backbone.Model {
constructor(attributes?: any, options?: any) {
super(attributes, options);
}
destroy(options?: Backbone.ModelDestroyOptions): any {
const opts = _.extend({
contentType: "application/json",
dataType: "text"
}, options || {});
super.destroy(opts);
}
}Expected behavior:
Actual behavior:
Runtime error. BaseModel is undefined
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created