We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the equivalent of foo instanceof Foo when using VeryModel?
foo instanceof Foo
The model instance stores a reference to the factory in __verymeta.model but this isn't exposed via the API.
__verymeta.model
The text was updated successfully, but these errors were encountered:
Having a method that accesses that would be a good way to go about it.
Sorry, something went wrong.
What I've done so far is implement this, but would be awesome if it was built in:
MyModel.is = function (o) { if (o && o.__verymeta && o.__verymeta.model) { return o.__verymeta.model === this; } return false; };
No branches or pull requests
What's the equivalent of
foo instanceof Foo
when using VeryModel?The model instance stores a reference to the factory in
__verymeta.model
but this isn't exposed via the API.The text was updated successfully, but these errors were encountered: