Hi i test code like below,but it got undefined,i use latest umd mobx code,thanks for your help,
var Person = function (firstName, lastName, age) {
this.id = .uniqueId('person');
mobx.extendObservable(this, {
firstName: firstName,
lastName: lastName,
age: age,
fullName:function () {//error code
console.count('fullName');
return this.firstName + ' ' + this.lastName;
}
});
};
var person = new Person('Matt', 'Ruby', 0);
mobx.autorun(function () {
console.log(person.fullname);//get undefined
});