Backbone fetch callback the proper way
My Backbone application has a view called schedule , I am a bit confused about the difference of calling the proper function on success and error, I am tried the both of tow possible listed below but i didn't what is difference and what is the right way to call a function from router placed in outside view: The first way: require([ 'app/collections/schedule', 'app/views/schedule' ], function(ScheduleCollection, ScheduleView) { var scheduleCollection = new ScheduleCollection(), scheduleView = new ScheduleView({ model: scheduleCollection }); scheduleCollection.fetch({ reset: true, success: