From 20190db5d0853112852b62281e7336de3eaaea26 Mon Sep 17 00:00:00 2001 From: Alexis Schad Date: Thu, 5 Feb 2015 19:37:53 +0100 Subject: [PATCH] fix #13 Small bug in Dialog.prompt out of nativeCocoon --- src/device/cocoon_dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/cocoon_dialog.js b/src/device/cocoon_dialog.js index 487d624..4fc642e 100644 --- a/src/device/cocoon_dialog.js +++ b/src/device/cocoon_dialog.js @@ -110,7 +110,7 @@ Cocoon.define("Cocoon.Dialog" , function(extension){ return Cocoon.callNative("IDTK_APP", "showTextDialog", args, true); }else{ setTimeout(function() { - var result = prompt(properties.message, properties.text); + var result = prompt(args[1], args[2]); var eventObject = result ? Cocoon.Dialog.onTextDialogFinished : Cocoon.Dialog.onTextDialogCancelled; eventObject.notifyEventListeners(result); }, 0);