peerlibrary/meteor-reactive-field

Could I declare like object "{.....}"?

thearabbit opened this issue · 2 comments

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();

Thanks 👍