You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that these functions return undefined instead of model as the documentation says they should. Opening up the source code it looks like these functions are incorrectly returning this (which is undefined in the scope of the function) instead of model.
The documentation claims
Model.setRelated
andModel.appendRelated
return the inputmodel
for chaining purposes:I found that these functions return
undefined
instead ofmodel
as the documentation says they should. Opening up the source code it looks like these functions are incorrectly returningthis
(which is undefined in the scope of the function) instead ofmodel
.The offending lines:
It looks like changing these lines to
return model
should fix the issue.The text was updated successfully, but these errors were encountered: