From user-return-15898-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Apr 20 15:01:40 2011 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AB8361DAB for ; Wed, 20 Apr 2011 15:01:40 +0000 (UTC) Received: (qmail 54151 invoked by uid 500); 20 Apr 2011 15:01:37 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 54128 invoked by uid 500); 20 Apr 2011 15:01:37 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 54105 invoked by uid 99); 20 Apr 2011 15:01:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 15:01:37 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of huskyr@gmail.com designates 209.85.210.180 as permitted sender) Received: from [209.85.210.180] (HELO mail-iy0-f180.google.com) (209.85.210.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 15:01:30 +0000 Received: by iyf40 with SMTP id 40so1165221iyf.11 for ; Wed, 20 Apr 2011 08:01:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=xPgY7usq9R2g2AhCtTF6c0Oo9cTf/RjsYQNXWK/Bq0I=; b=BPbCQIhwqb1OfPoWN44GLeuPW7IIa3TveTJdgW2f2/9xTlNu79GYwDCiKAErl+phnO /PcdYbxWHcMfMJf3M/pKaoDu/xjHqyfhFiwuWUSREatZkMF5HjfEWYiaAHp8Sh5iypoY ltuMa2a5HHvdXAkb7j7lun1Yea0JwnX5ne4AE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=VC3l7YXpANf3VX9BkGaXsL8sKf9kDozwR9E68ns0C8oLp8Yfv9vCYXuDAmUMTf2oON AUfB34qFmOCKYv5bMurvYsH3FlP6kmm2Zzp0RIlwV8DW6RZJVdZvKqojeuFIl2Rkpk4K wlBsE0RodDG8uwHbQM2g89ZNZTpG1nklksQ1k= Received: by 10.231.45.198 with SMTP id g6mr5929138ibf.69.1303311670205; Wed, 20 Apr 2011 08:01:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.205.202 with HTTP; Wed, 20 Apr 2011 08:00:50 -0700 (PDT) In-Reply-To: <4DAEF166.3020706@gmail.com> References: <6084E307-7CFB-4BAD-A12C-063272628B95@vpro.nl> <95333123-2B25-4E26-8C8A-D502C88D96B3@apache.org> <4DAEF166.3020706@gmail.com> From: "Hay (Husky)" Date: Wed, 20 Apr 2011 17:00:50 +0200 Message-ID: Subject: Re: Dealing with sealed docs To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 On Wed, Apr 20, 2011 at 4:44 PM, Patrick Barnes wrote: > If you change > var events = doc.events; > to > var events = clone doc.event; Would be great, but afaik there doesn't exist a 'clone' operator in Javascript. Virtually all JS frameworks provide a method (such as jQuery's 'extend' or Prototype's Object.clone), but in vanilla Javascript no such method exists. -- Hay