If you use .attach to attach options-api to a class, the options modified in one instance are also modify in other instances.
Take this example:
var optionsApi = require('options-api');
function Test() {}
optionsApi.attach(Test, { "a": "a", "b":"b" });
a = new Test();
a.get("a"); // returns "a"
a.set("a","b");
b = new Test();
b.get("a"); // returns "b"
I would expect, that b.get("a") would return "a" as it's the default value. Am I doing something wrong here or is it a bug?
If you use .attach to attach options-api to a class, the options modified in one instance are also modify in other instances.
Take this example:
I would expect, that b.get("a") would return "a" as it's the default value. Am I doing something wrong here or is it a bug?