Skip to content
New issue

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

support for using extensions to Backbone.Model #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shakerlxxv
Copy link

I'm using another Backbone.js plugin which provides an extension of the Backbone.Model class. As a result,

   structure instanceof Backbone.Model

is returning false. Which subsequently results in an error when I'm calling model.restore() as memento attempts to call the reset() method which doesn't exist on my Model. This change to include a check for .reset method does work for me.

If there's a better way to do this to provide support for extensions to Backbone.Model, I'd be interested to learn it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant