Commit 68381d41 by Sebastián Katzer

Magic trick to prevent your ui thread to hang in some cases (modal windows while…

Magic trick to prevent your ui thread to hang in some cases (modal windows while in background, ...)
parent bc862421
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
if (callbackFn.length > 0) if (callbackFn.length > 0)
{ {
NSString* jsCallBack = [NSString stringWithFormat:@"%@(%@)", callbackFn, id]; NSString* jsCallBack = [NSString stringWithFormat:@"setTimeout('%@(%@)',0)", callbackFn, id];
[self writeJavascript:jsCallBack]; [self writeJavascript:jsCallBack];
} }
......
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