Commit 0065f5af by Sebastián Katzer

Callback functions should be undefined by default.

parent 2a660177
......@@ -158,7 +158,7 @@
NSString* callbackType = isActive ? @"foreground" : @"background";
NSString* callbackFn = [notification.userInfo objectForKey:callbackType];
if (callbackFn.length > 0)
if (callbackFn && callbackFn.length > 0)
{
NSString* callback = [NSString stringWithFormat:@"setTimeout('%@(%@)',0)", callbackFn, id];
......
......@@ -26,8 +26,8 @@ LocalNotification.prototype = {
badge: 0,
id: 0,
repeat: '',
background: '',
foreground: ''
background: undefined,
foreground: undefined
};
switch (device.platform) {
......
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