Skip to content

Commit

Permalink
CB-6867 [wp8, windows8] allow empty args
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed Jun 4, 2014
1 parent 67032ca commit d970db7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/windows8/exec.js
Expand Up @@ -46,6 +46,8 @@ module.exports = function (success, fail, service, action, args) {
onSuccess,
onError;

args = args || [];

if (proxy) {
callbackId = service + cordova.callbackId++;
// console.log("EXEC:" + service + " : " + action);
Expand Down
1 change: 1 addition & 0 deletions src/windowsphone/exec.js
Expand Up @@ -44,6 +44,7 @@ module.exports = function(success, fail, service, action, args) {
if (typeof success == "function" || typeof fail == "function") {
cordova.callbacks[callbackId] = {success:success, fail:fail};
}
args = args || [];
// generate a new command string, ex. DebugConsole/log/DebugConsole23/["wtf dude?"]
for(var n = 0; n < args.length; n++)
{
Expand Down

0 comments on commit d970db7

Please sign in to comment.