Skip to content

Commit

Permalink
fix: regression of DeepModel.extend() (#229)
Browse files Browse the repository at this point in the history
Fix #228
  • Loading branch information
ybiquitous authored Nov 21, 2019
1 parent d0a6927 commit 588b371
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ function isObject(value) {
* const Person = DeepModel.extend({...})
*/
export default class DeepModel extends Backbone.Model {
static extend(...args) {
return Backbone.Model.extend(...args)
}

/**
* this module's version.
*/
Expand Down Expand Up @@ -156,3 +152,5 @@ export default class DeepModel extends Backbone.Model {
return super.set(newAttrs, options)
}
}

DeepModel.extend = Backbone.Model.extend

0 comments on commit 588b371

Please sign in to comment.