javascript - model.fetch({success: function() }); taking long time to get the server response and getting delayed to load -


i'm writing model.fetch success function , taking time json response , delayed in loading. when debugging every time looping until success , again after in next iteration looping inside function

my code follow:

    functionone: function (evt) {         if (this.model.get('code') !== code) {             // need handle selected type             this.model.set('code', id);             this.model.fetch({                 success: function () {                     this.functiontwo();                 }             });         }     },     functiontwo: function () {          this.ui.list.trigger('change');          // if required reset single list          this.initialize(this.options);         this.method();     } 


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -