javascript - Backbone Model fetch steps on loading indicator in Chrome & IE -
we have app shows loading.gif while fetching models data via backbone. code pretty looks like:
$('.loading-indicator').show() mymodel.fetch({async: false}) setsomeothervar = date.today() //some var unrelated fetch $('.loading-indicator').hide()
this works fine in ffx, in chrome , ie loading indicator disappears when fetch called. can see stepping through w/ debugger. if set breakpoint on fetch indicator there, , disappears when fetch called. fetch successful , there no errors in console.
any insight appreciated
i found answer , works me. removed {async: false}
and solved me. mentioned @alexander derck, try removing asynchronous , should work.
Comments
Post a Comment