Search code examples
javascriptbackbone.jsaem

Methods, destroy and fetch of backbone.js are not supported in Adobe aem cq6.3


These backbone.js methods (fetch and destroy) were working fine in adobe aem CQ5.6, now I have updated to CQ6.3. Functionalities are not working now.

fetch method -

fetch({
    url: contextPath+"/bin/servletpath/updatemessage",
    data: data,
    add: true,
    cache: false,
    success: (successCallback ? successCallback : function(){
        self.allowRequests = true;
    }),
    error: (errorCallback ? errorCallback : function(){
        self.allowRequests = true;
    })
});

Solution

  • Working fine by adding complete as below.

    complete: function(response){ self.allowRequests = true; }