67
rated 0 times
[
68]
[
1]
/ answers: 1 / hits: 21340
/ 12 Years ago, tue, march 13, 2012, 12:00:00
Given an instance of Backbone model, how can I know the class (so to speak) of this instance ?
For instance:
class Car extends Backbone.Model
mycar = new Car()
And what I need is:
mycar.modelName # => 'Car'
More From » backbone.js