NPellet / visualizer

Other
43 stars 24 forks source link

add API.getPreferences(moduleID); #1139

Open lpatiny opened 4 years ago

lpatiny commented 4 years ago

Using a similar API as

function updatePreferences(moduleId, values)

It would be nice to also have the method

let values = getPreferences(moduleId);

The goal is really that we can do API.updatePreferences(4, API.getPreferences(4)); and nothing should change. I'm quite lost with alias and I don't know how easy it is to do.