You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2009/02/22 19:44:26 UTC

svn commit: r746798 - /couchdb/trunk/share/www/script/jquery.couch.js

Author: jchris
Date: Sun Feb 22 18:44:26 2009
New Revision: 746798

URL: http://svn.apache.org/viewvc?rev=746798&view=rev
Log:
undefined protection for design doc attachments in futon

Modified:
    couchdb/trunk/share/www/script/jquery.couch.js

Modified: couchdb/trunk/share/www/script/jquery.couch.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/jquery.couch.js?rev=746798&r1=746797&r2=746798&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/jquery.couch.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/jquery.couch.js [utf-8] Sun Feb 22 18:44:26 2009
@@ -192,7 +192,7 @@
                       index = ddoc.couchapp && ddoc.couchapp.index;
                       if (index) {
                         appPath = ['', name, index[0], appName, index[1]].join('/');
-                      } else if (ddoc._attachments["index.html"]) {
+                      } else if (ddoc._attachments && ddoc._attachments["index.html"]) {
                         appPath = ['', name, '_design', appName, "index.html"].join('/');
                       }
                       if (appPath) options.eachApp(appName, appPath, ddoc);