Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 78113 invoked from network); 25 Mar 2010 14:19:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Mar 2010 14:19:02 -0000 Received: (qmail 17023 invoked by uid 500); 25 Mar 2010 14:19:02 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 16893 invoked by uid 500); 25 Mar 2010 14:19:01 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 16885 invoked by uid 99); 25 Mar 2010 14:19:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Mar 2010 14:19:01 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bchesneau@gmail.com designates 209.85.216.179 as permitted sender) Received: from [209.85.216.179] (HELO mail-px0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Mar 2010 14:18:54 +0000 Received: by pxi9 with SMTP id 9so926870pxi.6 for ; Thu, 25 Mar 2010 07:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=kUcW+3lR0e4KUsDwJ280HtH5cuurLSc4hD2Hz7ORgWA=; b=kqTHd9yMtp7COMSTqplq3I/qZWvabXPyR7NlID5COD4lGxZZWMsTP15nTELEUh9gIF M1pKL8R8B7deWUxMouqIGAdv3LH8w9ZlZ260MQEhsY32BvO3rm8mW52YBLlgMrvH50iy B+mW2Pk6X9cjt9YW5PHVuuIxBSshWB5PgBzV8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ueTJRYU22ys7fZCe2E00FiYBHnAALz/axR+Th2kjR0LkwLLPQAt/mXWfsV1UD9yF5E y5NUrJBOVJwdii2ojQQU3ukL636jyR2AOO5Ii69fDPPQ5Plf1SEwU60esdUHCOmPMAP1 Vr/evqoBPGAUMlmvYOEjR23k3DYjru7Qs6Skc= MIME-Version: 1.0 Received: by 10.140.255.10 with SMTP id c10mr2661063rvi.289.1269526712929; Thu, 25 Mar 2010 07:18:32 -0700 (PDT) In-Reply-To: References: <717bc8231003250648u21b62f4eqb729c5c3f02a8511@mail.gmail.com> Date: Thu, 25 Mar 2010 15:18:32 +0100 Message-ID: Subject: Re: JavaScript specification changes at 0.11? From: Benoit Chesneau To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Mar 25, 2010 at 3:10 PM, Paul Davis wrote: > The fact that you used to be able to attach to the 'this' object was > definitely just a coincidence. I'm fairly surprised it even worked > consistently for you. > > That said, it looks like you're wanting to check out the > require("path.to.stuff") method that's now available for show and > list. This will let you define arbitrary JS in your _design doc and > import it in your show/list functions. > > HTH, > Paul Davis > this is also used to acccess to the ddoc now if I remmeber. - benoit