Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

can use regular json stringify for ddocs now

  • Loading branch information...
commit 1d975b228c0275390a0b1ef49d37f45ee2c9778b 1 parent 97fa538
@jchris jchris authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 shows/page.js
View
6 shows/page.js
@@ -1,13 +1,9 @@
function(doc, req) {
- // top two lines have to come first or else parent references in the ddoc
- // which are created by calls to require will break JSON.stringify.
var name, stub, ddoc = this,
mustache = require("vendor/couchapp/lib/mustache"),
wiki = require("lib/wiki"),
data = {
- ddoc : JSON.stringify(require("vendor/couchapp/lib/code").ddoc(ddoc), function(key, value) {
- return (key == "parent") ? undefined : value;
- }),
+ ddoc : JSON.stringify(require("vendor/couchapp/lib/code").ddoc(ddoc)),
docid : JSON.stringify(req.id),
id : req.id,
path : "../page/"+req.id,
Please sign in to comment.
Something went wrong with that request. Please try again.