Backbone Object render has no method apply - issue with bind

前端 未结 1 1959
误落风尘
误落风尘 2021-01-25 00:41

So I\'m doing this in my AppView

var flowerModel = new app.DataModel({title: \"flower\", values: [\"tulip\",\"rose\",\"dandelion\"], dataToShow:[\"tulip\", \"ros         


        
相关标签:
1条回答
  • 2021-01-25 01:35

    Try this :

    flowerModel.bind('change:dataToShow', function() { 
        timelineModel.set('titlesToShow', flowerModel.get('dataToShow')); 
    });
    

    this.model.bind('change', this.render);
    
    0 讨论(0)
提交回复
热议问题