Commit 91169ad7 authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Fix "Callbacks returns Object instead of args"

Bug came with 7fc01db0.
Solves #168
parent 3649f4bc
Loading
Loading
Loading
Loading
+3 −1
Changes for www/local-notification.js: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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);
            }
        }
    },