Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F27A2108D3 for ; Tue, 3 Sep 2013 17:45:52 +0000 (UTC) Received: (qmail 15438 invoked by uid 500); 3 Sep 2013 17:45:52 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 15406 invoked by uid 500); 3 Sep 2013 17:45:52 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 15391 invoked by uid 99); 3 Sep 2013 17:45:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Sep 2013 17:45:52 +0000 Date: Tue, 3 Sep 2013 17:45:52 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-4588) Documentation for notification.confirm should say to pass buttonLabels as Array MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-4588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13756822#comment-13756822 ] ASF subversion and git services commented on CB-4588: ----------------------------------------------------- Commit 15ee26ddf96337a2908cc48f6537da122c3dadce in branch refs/heads/master from [~lorin] [ https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;h=15ee26d ] [CB-4588] updated button labels example code to use array syntax, from deprecated comma separated string syntax > Documentation for notification.confirm should say to pass buttonLabels as Array > ------------------------------------------------------------------------------- > > Key: CB-4588 > URL: https://issues.apache.org/jira/browse/CB-4588 > Project: Apache Cordova > Issue Type: Improvement > Components: Docs > Affects Versions: 2.9.0 > Reporter: Peter > Assignee: Lorin Beer > Priority: Minor > > Compare navigator.notification.confirm and navigator.notification.prompt. > Both APIs allow caller to specifiy *buttonLabels* as 4th parameter, but confirm expects a comma separated String and prompt expects an array. The parameter passing mechanism should be consistent for these similar APIs. > It looks like the cordova.js is already handling the scenario, because it says: > {code} > console.log("Notification.confirm(string, function, string, string) is deprecated. Use Notification.confirm(string, function, string, array)."); > {code} > But the documentation for navigator.confirm is out-of-step with the code; it should be updated to say to pass Array, not String. > Seems related to CB-1933 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira