File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 892
892
* @returns {ns.View~UpdateTree }
893
893
*/
894
894
ns . View . prototype . _getCommonTree = function ( ) {
895
+ // Fix #652
896
+ // Асинхронный вид в состоянии загрузки с невалидными моделями - переводим в состояние
897
+ // асинхронной загрузки.
898
+ // Такое случалось, к примеру, когда для асинхронного вида вызывали view.update() - вид рендерился
899
+ // в состоянии ошибки.
900
+ if ( this . async && this . isLoading ( ) && ! this . isModelsValid ( ) ) {
901
+ this . asyncState = true ;
902
+ }
903
+
895
904
var tree = {
896
905
box : this . info . isBox ,
897
906
collection : this . info . isCollection ,
900
909
models : { } ,
901
910
params : this . params ,
902
911
903
- // состояние вида, по сути выбираем моду для отрисовку
912
+ // состояние вида, по сути выбираем моду для отрисовки
904
913
// ok - ns-view-content
905
914
// loading - ns-view-async-content
906
915
// error - ns-view-error-content
You can’t perform that action at this time.
0 commit comments