javascript - Backbone: What is the reason to have a model or other properties? -
i have problem backbone.js.
i have simple code :
var photoview = backbone.view.extend({ model: photo, el: 'img', photos: photocollection, initialize: function () { }, ` model used in here ? coz if initialized call
var pview = new photoview({model:photo}); some how need pass photo object constructor of photoview. otherwise model property null, when tried use model property inside photoview functions.
Comments
Post a Comment