Could I declare like object "{.....}"?
thearabbit opened this issue · 2 comments
thearabbit commented
Could I declare like object "{.....}"?
var foo = new .........
foo.bar('val');
/////// call
foo.bar()
mitar commented
You can do:
var foo = {
bar: new ReactiveField('val')
};
foo.bar();
thearabbit commented
Thanks