Skip to content

Options doesn't work with listen() nor updateDisplay() and can't deduce value from member #256

Open
@Sairony

Description

@Sairony

Here's a fiddle with the problem, pasted here for completeness sake:

var gui = new dat.GUI( );

var testObj = { 'options': [] }

// Default can't be deduced from testObj.options as with other values?
gui.add( testObj, 'options', [] ).listen();

testObj.options.push( 'someArg' ); // Options doesn't update

for (var i in gui.__controllers) // Neither does this
	gui.__controllers[i].updateDisplay();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions