{"action":"closed","issue":{"url":"https://api.github.com/repos/hashchange/backbone.select/issues/10","labels_url":"https://api.github.com/repos/hashchange/backbone.select/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/hashchange/backbone.select/issues/10/comments","events_url":"https://api.github.com/repos/hashchange/backbone.select/issues/10/events","html_url":"https://github.com/hashchange/backbone.select/issues/10","id":109267597,"number":10,"title":"Doesn't work when selectable model doesn't descend directly from Backbone.Model","user":{"login":"allforabit","id":537189,"avatar_url":"https://avatars.githubusercontent.com/u/537189?v=3","gravatar_id":"","url":"https://api.github.com/users/allforabit","html_url":"https://github.com/allforabit","followers_url":"https://api.github.com/users/allforabit/followers","following_url":"https://api.github.com/users/allforabit/following{/other_user}","gists_url":"https://api.github.com/users/allforabit/gists{/gist_id}","starred_url":"https://api.github.com/users/allforabit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allforabit/subscriptions","organizations_url":"https://api.github.com/users/allforabit/orgs","repos_url":"https://api.github.com/users/allforabit/repos","events_url":"https://api.github.com/users/allforabit/events{/privacy}","received_events_url":"https://api.github.com/users/allforabit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-01T09:53:42Z","updated_at":"2015-10-02T16:08:01Z","closed_at":"2015-10-02T16:08:01Z","body":"I'm using another library Supermodel.js and this provides it's own module that inherits from Backbone.Model. The check for the model type: model instanceof Backbone.Model only checks the parent and not the full hierarchy. I'm wondering if there'd be another way to check the full hierarchy to see if the model descends from Backbone.Model. Another solution would be to make supermodel work as a mixin similarly to backbone.select."}}