Skip to content

Commit

Permalink
add blocksData and examplesData
Browse files Browse the repository at this point in the history
  • Loading branch information
tadatuta committed Sep 26, 2015
1 parent 39826d4 commit 92ad40f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/model/nodes/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ BlockNode.prototype.setSource = function (version, level, block) {
this.source = {
data: block.data,
jsdoc: block.jsdoc,
blocksData: block.blocksData,
examplesData: block.examplesData,
enb: version.enb,
prefix: version.enb ?
util.format('/__example/%s/%s', version.repo, version.ref) :
Expand Down Expand Up @@ -123,7 +125,7 @@ BlockNode.prototype.createMeta = function (version) {
BlockNode.prototype.saveToDb = function () {
var batchOperations = [];

['data', 'jsdoc'].forEach(function(field) {
['data', 'jsdoc', 'blocksData', 'examplesData'].forEach(function(field) {
var val = this.source[field];

if (!val) {
Expand Down

0 comments on commit 92ad40f

Please sign in to comment.