From 588b37171412b4ec79bdacd2ac564093f9916eb6 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Thu, 21 Nov 2019 12:14:11 +0900 Subject: [PATCH] fix: regression of `DeepModel.extend()` (#229) Fix #228 --- lib/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/index.js b/lib/index.js index 6d018f0..8b0f8bc 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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. */ @@ -156,3 +152,5 @@ export default class DeepModel extends Backbone.Model { return super.set(newAttrs, options) } } + +DeepModel.extend = Backbone.Model.extend