Permalink
Browse files

$load should trigger after everything has actually loaded

  • Loading branch information...
gliechtenstein committed Jan 10, 2018
1 parent 32208e1 commit 656e09671384517ad2e4e16c03294567c03cc032
Showing with 4 additions and 1 deletion.
  1. +4 −1 app/Jasonette/Jason.m
View
@@ -1805,7 +1805,6 @@ - (void)drawViewFromJason: (NSDictionary *)jason asFinal: (BOOL) final{
NSDictionary *head = dom[@"head"];
if(head){
[self setupHead: head];
[self onLoad: final];
}
/****************************************************************************
@@ -1907,6 +1906,10 @@ - (void)drawViewFromJason: (NSDictionary *)jason asFinal: (BOOL) final{
if(final) [self cache_view];
}
if(head){
[self onLoad: final];
}
}
[self loading:NO];
[self networkLoading:NO with:nil];

0 comments on commit 656e096

Please sign in to comment.