Open mortengf opened 10 years ago
Allan has implemented public/create/scripts/utils-shared.js:mongooseEquals()
that can take an ObjectId
, _id
string, or complete Mongoose object as input which is used for all comparisons of Mongoose model objects.
So this issue is now only about documenting whether the Styleset.copy()
and Style.copy()
functions need populated model objects as input (and maybe changing how they are called to be consistent).
Styleset/Style.isPopulated() functions now exist: use this function where appropriate.