Closed beebase closed 9 years ago
I found this notation in the docs
var prepareUuId = function(obj, cb)...
var prepareFileName = function(obj, cb)...
Model.preparers.push(prepareUuId, prepareFileName);
...but it errors with
Model.preparers.push(prepareUuId, prepareFileName);
^
TypeError: Cannot read property 'push' of undefined
I can't find a reference to that in the docs, it would be outdated if it remained. The correct way to do it is:
Model.on('prepare', prepareUuId);
Model.on('prepare', prepareFileName);
Is there a way to add multiple functions to the prepare event?
something like: Model.on('prepare', [prepareFileName, prepareUuId]);