Commit 91169ad7 by Sebastián Katzer

Fix "Callbacks returns Object instead of args"

Bug came with 7fc01db0.
Solves #168
parent 3649f4bc
......@@ -122,7 +122,9 @@ LocalNotification.prototype = {
*/
createCallbackFn: function (callbackFn, scope) {
return function () {
callbackFn.apply(arguments, scope || this);
if (typeof callbackFn == 'function') {
callbackFn.apply(scope || this, arguments);
}
}
},
......
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