« All deprecation guides
Deprecation Guide for Deprecate Model Reopenclass
Instead of reopenClass, define static
properties with native class syntax or add them to the final object.
Instead of:
User.reopenClass({ aStaticMethod() {} });
Do this:
class User {
static aStaticMethod() {}
}
Or, do this:
User.aStaticMethod = function () {};