Skip to content

Commit

Permalink
set the ddocs _attachments property if it doesn't exist
Browse files Browse the repository at this point in the history
-> #2
  • Loading branch information
fb55 committed Sep 4, 2013
1 parent 84dd409 commit b769176
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ DDoc.prototype.copy_template = function() {
// Attach the web browser port.
DDoc.prototype.add_browser = function(callback) {
var counter = 0

this._attachments = this._attachments || {};

;['cqs.min.js', 'showlist.js', 'index.html']
.forEach(function(name) {
Expand Down

0 comments on commit b769176

Please sign in to comment.