To add some extra options to header i override the sync method. when i try to fetch the data it simply shows the empty model in console. Even there is now sign of making request to server found in network tab. While Backbone.ajax() works fine.
Can you tell me what could be the missing point.
var model = new MovieModel();
model.fetch(); /// empty model in console
`
define('Backbone.Model'
, [
'Configuration'
, 'backbone'
, 'underscore'
]
, function
(
Configuration
, Backbone
, _
)
{
'use strict';
To add some extra options to header i override the sync method. when i try to fetch the data it simply shows the empty model in console. Even there is now sign of making request to server found in network tab. While Backbone.ajax() works fine. Can you tell me what could be the missing point. var model = new MovieModel(); model.fetch(); /// empty model in console ` define('Backbone.Model' , [ 'Configuration' , 'backbone' , 'underscore' ] , function ( Configuration , Backbone , _ ) { 'use strict';
}); `