walmartlabs / thorax

Strengthening your Backbone
http://thoraxjs.org/
Other
1.32k stars 129 forks source link

loadingTemplate on model fetch #386

Open yamsellem opened 10 years ago

yamsellem commented 10 years ago

It seems only possible to benefit from a loadingTemplate when fetching a collection. Fetching the user, for example, can highly benefit from such an improve.

yamsellem commented 10 years ago

Looking at the source, and playing with a code sample, there is a loading class added on every view.el when it's fetching its model/collection.

So I guess it will do the trick. Because this is not documented, can you tell me when can I expect this class?

kpdecker commented 9 years ago

Those should be the general case, but I'll confirm and make sure that we have this formally documented.