2.6.3
- Workaround for the issue #694. From now all the storage operation options are being passed to the event object. For example when calling the
save
method:
user.save({ fields: ["firstName"] });
The fields option will be available in the event handler.
events: {
beforeSave(e) {
if (
e.fields &&
e.fields.includes("firstName") &&
e.currentTarget.isModified("firstName")
) {
// Do something...
}
}
}