Commit 97f54d9e by Sebastián Katzer

Merge pull request #41 from tricksel/master

Fix to callback function calls
parents 9e735fc8 91c78753
...@@ -240,9 +240,9 @@ NSString *const kAPP_LOCALNOTIFICATION = @"APP_LOCALNOTIFICATION"; ...@@ -240,9 +240,9 @@ NSString *const kAPP_LOCALNOTIFICATION = @"APP_LOCALNOTIFICATION";
if (![self strIsNullOrEmpty:callbackFn]) if (![self strIsNullOrEmpty:callbackFn])
{ {
NSString* js = [NSString stringWithFormat:@"setTimeout('%@(%@)',0)", callbackFn, id]; NSString* js = [NSString stringWithFormat:@"setTimeout('%@(\"%@\")',0)", callbackFn, id];
[self writeJavascript:js]; [self.commandDelegate evalJs:js];
} }
} }
......
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