From 202a9918e2f3adc34069eb66489068a3710906bc Mon Sep 17 00:00:00 2001 From: gstamac Date: Fri, 23 Aug 2013 13:51:53 +0200 Subject: [PATCH] PhoneGap: fixed two "Duplicate identifier" errors in tests --- phonegap/phonegap-tests.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/phonegap/phonegap-tests.ts b/phonegap/phonegap-tests.ts index 2eabf75b0..273551c11 100644 --- a/phonegap/phonegap-tests.ts +++ b/phonegap/phonegap-tests.ts @@ -107,21 +107,21 @@ function test_capture() { } var options = { limit: 3, duration: 10 }; navigator.device.capture.captureAudio(captureSuccess, captureError, options); - var captureSuccess = function (mediaFiles) { + function captureSuccess2(mediaFiles) { var i, path, len; for (i = 0, len = mediaFiles.length; i < len; i += 1) { path = mediaFiles[i].fullPath; } }; - var captureError = function (error) { + function captureError2(error) { navigator.notification.alert('Error code: ' + error.code, null, 'Capture Error'); }; - navigator.device.capture.captureImage(captureSuccess, captureError, { limit: 2 }); + navigator.device.capture.captureImage(captureSuccess2, captureError2, { limit: 2 }); function captureImage() { - navigator.device.capture.captureImage(captureSuccess, captureError, { limit: 2 }); + navigator.device.capture.captureImage(captureSuccess2, captureError2, { limit: 2 }); } function captureVideo() { - navigator.device.capture.captureVideo(captureSuccess, captureError, { limit: 2 }); + navigator.device.capture.captureVideo(captureSuccess2, captureError2, { limit: 2 }); } }