Commit 91c5f793 by Sebastián Katzer

Execute ready on iOS async

parent fd613254
...@@ -72,11 +72,12 @@ ...@@ -72,11 +72,12 @@
{ {
deviceready = YES; deviceready = YES;
[self.commandDelegate runInBackground:^{
for (NSString* js in eventQueue) { for (NSString* js in eventQueue) {
[self.commandDelegate evalJs:js]; [self.commandDelegate evalJs:js];
} }
[eventQueue removeAllObjects]; [eventQueue removeAllObjects];
}];
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment