incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hay (Husky)" <hus...@gmail.com>
Subject Re: Dealing with sealed docs
Date Wed, 20 Apr 2011 15:00:50 GMT
On Wed, Apr 20, 2011 at 4:44 PM, Patrick Barnes <mrtrick@gmail.com> 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

Mime
View raw message