Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 05545D42F for ; Fri, 26 Oct 2012 02:06:05 +0000 (UTC) Received: (qmail 43856 invoked by uid 500); 26 Oct 2012 02:06:04 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 43805 invoked by uid 500); 26 Oct 2012 02:06:04 -0000 Mailing-List: contact dev-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 dev@cordova.apache.org Received: (qmail 43797 invoked by uid 99); 26 Oct 2012 02:06:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2012 02:06:04 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of simon.macdonald@gmail.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pb0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2012 02:05:59 +0000 Received: by mail-pb0-f47.google.com with SMTP id ro12so2222366pbb.6 for ; Thu, 25 Oct 2012 19:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=j4qxAfNuhZw8bhlKr44pUyYrjjVS6cCSJyAR6Mip/gw=; b=B9OYLXwLP6gncbY4Amv9pRAwnFUoOAiqer0jWQGhxsZsa5xCrVOzj3cz+ICDsXeFz4 iOWiz0zCRN3SngLj9bFq5Pa4XpPiXOJ8Sd3VLoHmrWJ1Hbn/C04hPtz9yBgH544QFJrY ZjRPsXFMP0AGJELw/J+BL59IjIPpx3RsIoyWw42a5oYoYHUu60B07amk5Na3/idWIdkn oimeTOaxALO2+O8Qo9xrD+n9hYRscRgJhNhJDVWHVLWfMm5OI2oECKUsLZTG8n6rlXMI LG5M5A+vV6niODfSC9IV9BJEURQrGXbm1xLUmLQrgz6NA8pCcV1rxHPNrL7Eqp+Yu/c6 wt6Q== Received: by 10.68.202.202 with SMTP id kk10mr50647090pbc.32.1351217139790; Thu, 25 Oct 2012 19:05:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.38.168 with HTTP; Thu, 25 Oct 2012 19:05:19 -0700 (PDT) In-Reply-To: References: From: Simon MacDonald Date: Thu, 25 Oct 2012 22:05:19 -0400 Message-ID: Subject: Re: Notification API: notification.confirm: What should this do on cancel? To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=047d7b15af47a1b2ae04ccecc1fc X-Virus-Checked: Checked by ClamAV on apache.org --047d7b15af47a1b2ae04ccecc1fc Content-Type: text/plain; charset=ISO-8859-1 I think 0 on a cancel is okay as long as we document it. The only other thing we could do is to add an optional cancellation callback to the end of the argument list for the method. Simon Mac Donald http://hi.im/simonmacdonald On Thu, Oct 25, 2012 at 5:12 PM, Joe Bowser wrote: > Hey > > I'm working through CB-1742, and adding the onCancel listeners for > when someone uses the back button. However, it seems that we don't > have any behaviour defined for this. Right now, I return 0 for this > on the notification.confirm, but I don't think that's right. What > should this be? > > Any ideas? > > Joe > --047d7b15af47a1b2ae04ccecc1fc--