jQuery(document).ready(function($) {
var FirstModel = Backbone.Model.extend({
initialize: function() {
},
Playing: function() {
console.log("Inheritance Model");
}
});
fmodel2 = FirstModel.extend({});
fmodel3 = new fmodel2();
var ModelView = Backbone.View.extend({
model: fmodel3,
initialize: function() {
this.render();
},
render: function() {
fmodel3.Playing()
}
});
vmodel = new ModelView();
});
jQuery(document).ready(function($) {
var FirstModel = Backbone.Model.extend({
initialize: function() {
},
Playing: function() {
console.log("Parent Inheritance Model");
}
});
fmodel2 = FirstModel.extend({
Playing: function() {
console.log("Child Inheritance Model");
}
});
fmodel3 = new fmodel2();
var ModelView = Backbone.View.extend({
model: fmodel3,
initialize: function() {
this.render();
},
render: function() {
fmodel3.Playing()
}
});
vmodel = new ModelView();
});