From 880a802483a6c8bf774876aa7d48cf269735be34 Mon Sep 17 00:00:00 2001 From: Andrej Date: Tue, 28 May 2019 09:28:14 +0700 Subject: [PATCH] remove of object.constructor --- src/dat/controllers/CustomController.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dat/controllers/CustomController.js b/src/dat/controllers/CustomController.js index fe82583..819610b 100644 --- a/src/dat/controllers/CustomController.js +++ b/src/dat/controllers/CustomController.js @@ -18,10 +18,10 @@ import Controller from './Controller'; * @param {string} property */ class CustomController extends Controller{ - constructor(object, property) { - super(object, property); + constructor(init) { + super({}); - object.constructor( this ); + init( this ); this.custom = true; } }