Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCA0C9AFF for ; Wed, 22 Feb 2012 17:30:57 +0000 (UTC) Received: (qmail 40167 invoked by uid 500); 22 Feb 2012 17:30:57 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 40133 invoked by uid 500); 22 Feb 2012 17:30:57 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 40124 invoked by uid 99); 22 Feb 2012 17:30:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 17:30:57 +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 (nike.apache.org: domain of simon.macdonald@gmail.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pw0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 17:30:50 +0000 Received: by pbcum15 with SMTP id um15so357693pbc.6 for ; Wed, 22 Feb 2012 09:30:29 -0800 (PST) Received-SPF: pass (google.com: domain of simon.macdonald@gmail.com designates 10.68.132.102 as permitted sender) client-ip=10.68.132.102; Authentication-Results: mr.google.com; spf=pass (google.com: domain of simon.macdonald@gmail.com designates 10.68.132.102 as permitted sender) smtp.mail=simon.macdonald@gmail.com; dkim=pass header.i=simon.macdonald@gmail.com Received: from mr.google.com ([10.68.132.102]) by 10.68.132.102 with SMTP id ot6mr2771069pbb.157.1329931829392 (num_hops = 1); Wed, 22 Feb 2012 09:30:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ueMjs3f7CyJHKT/VPpDn1vGet2KqUN4M8bUUsP7A440=; b=D+6c3DMvBhwv7dvBgJEh1KDs+k8A5BmrTl0FdRChTInY2JdQpenH1sGldPwkp0/tYj 3DSKnSqImQ/OmKk75jd/nCAGhp9lDU3Lblw0V8EeN05qGGwiTx7AEvnGdNejRSQLcop2 2efhG7vwIpw5Oa1PQR0ew0Kw8As4XDKTqSh30= Received: by 10.68.132.102 with SMTP id ot6mr2218133pbb.157.1329931829207; Wed, 22 Feb 2012 09:30:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.10.170 with HTTP; Wed, 22 Feb 2012 09:30:08 -0800 (PST) In-Reply-To: References: From: Simon MacDonald Date: Wed, 22 Feb 2012 12:30:08 -0500 Message-ID: Subject: Re: Changes to File API To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=047d7b15a4d741646e04b990e24c X-Virus-Checked: Checked by ClamAV on apache.org --047d7b15a4d741646e04b990e24c Content-Type: text/plain; charset=ISO-8859-1 Okay, I've just put a change that adds toURI back into the Entry class for backwards compatibility. I also removed the success/error parameters from toURL as they are not according spec and they are never used. Take a look at the change and let me know if anything else is needed: https://github.com/macdonst/callback-js/commit/de67a919af0aa5bdc81ab3c2eece1ed17a7fd9de If I get a +1 I'll merge the code into the Apache cordova-js repo. Simon Mac Donald http://hi.im/simonmacdonald On Fri, Feb 17, 2012 at 2:55 PM, Filip Maj wrote: > I like that idea, Simon. Simple to add a method copy from toURL -> toURI, > add a console.log, tag for 1.5, done. > > As for updating the error codes - can we shelve that for 1.6? > > On 12-02-17 11:52 AM, "Simon MacDonald" wrote: > > >For the 1.5.0 release can we support .toURI() and .toURL()? > >We'll mark toURI as deprecated and remove it in 1.6.0 or 1.7.0. What do > >you > >think? > > > >As for the FileError codes. Grrrrr...why did they have to change them. > > > >Simon Mac Donald > >http://hi.im/simonmacdonald > > > > > >On Fri, Feb 17, 2012 at 2:36 PM, Becky Gibson > >wrote: > > > >> I was running the mobile-spec after Shaz completed and checked in the > >>iOS > >> name change (THANKS, Shaz!) and found that several file tests fail. The > >> issue is the name change of the .toURI() api to .toURL(). > >> Checking on the W3C File API: Directories and Systems spec. this API was > >> indeed renamed from the October, 2010, version of the spec that we > >> implemented to the April and May, 2011 versions. The FileError codes > >>have > >> also been reassigned - although that has not been updated in the > >>unified-js > >> implementation. > >> > >> Other than the API name change and FileError code reassignments, I don't > >> see major changes in the specification. However, this will certainly > >>break > >> existing apps and I question making that change. I realize it has to > >>be > >> made sooner or later, but it might be best to wait for the api to be > >> finalized. If we are going to make this api change, then we should > >> probably also make the FileError changes to be consistent. And update > >>the > >> docs and make sure this is well documented. > >> > >> my two cents, > >> -becky > >> > > --047d7b15a4d741646e04b990e24c--