diff --git a/src/dat/controllers/CustomController.js b/src/dat/controllers/CustomController.js index aca26d8..6dd49d8 100644 --- a/src/dat/controllers/CustomController.js +++ b/src/dat/controllers/CustomController.js @@ -17,10 +17,10 @@ import Controller from './Controller'; * @param {init} callback function for adding of elements into this.domElement */ class CustomController extends Controller{ - constructor(init) { - super({}); + constructor(init) { + super({}); - init( this ); + init( this ); this.custom = true; } } diff --git a/src/dat/gui/GUI.js b/src/dat/gui/GUI.js index 49dbcab..7144d7b 100644 --- a/src/dat/gui/GUI.js +++ b/src/dat/gui/GUI.js @@ -561,7 +561,7 @@ common.extend( /** * Adds a new custom controller to the GUI. * - * @param object + * @param init * @param property * @returns {Controller} The controller that was added to the GUI. * @instance