My extension is written as follows:
define('Account.Model.Extension'
, [
'Account.Model'
, 'underscore'
]
, function (
AccountModel
, _
)
{
'use strict';
_.extend(AccountModel.Prototype,
{
register: function(customer, user_data) {
... // My extension for register function here.
}
});
}
);
p
PabloZ
06/25/2020, 1:58 AM
_.extend(AccountModel.Prototype,
this is the offending line
if this was a backbone model, it would have been AccountModel.prototype (lowercase p).
But in backend models, it's not prototype
so in this case it is:
_.extend(AccountModel, ....
o
Ori Zacher
06/25/2020, 2:00 AM
Man youβre quick Pablo! Was in the process of replying haha
π 1
m
Mikey
06/25/2020, 2:00 AM
Great, thanks @PabloZ π I'll give that a try.
Mikey
06/25/2020, 2:01 AM
That was fast, I was about to get lunch and come back to check. π