Let's say I have a JavaScript constructor as follows:
function MyModel() {
}
MyModel.create = function(...);
How can I set up pre/post hooks for MyModel.create? The code doesn't seem to support this use case as it assumes the methods are from the prototype.
Let's say I have a JavaScript constructor as follows:
How can I set up pre/post hooks for MyModel.create? The code doesn't seem to support this use case as it assumes the methods are from the prototype.