(options)
| 124 | |
| 125 | |
| 126 | function DocumentConverter(options) { |
| 127 | return { |
| 128 | convertToHtml: function(element) { |
| 129 | var comments = _.indexBy( |
| 130 | element.type === documents.types.document ? element.comments : [], |
| 131 | "commentId" |
| 132 | ); |
| 133 | var conversion = new DocumentConversion(options, comments); |
| 134 | return conversion.convertToHtml(element); |
| 135 | } |
| 136 | }; |
| 137 | } |
| 138 | |
| 139 | function DocumentConversion(options, comments) { |
| 140 | var noteNumber = 1; |
nothing calls this directly
no outgoing calls
no test coverage detected