bugfix
This commit is contained in:
@@ -211,16 +211,16 @@ var _Enonce = {
|
||||
// // console.log('Enonce on init', vn);
|
||||
this.partid = vn.attrs.partid;
|
||||
this.id = vn.attrs.id;
|
||||
this.title = vn.attrs.title;
|
||||
this.title = vn.attrs.title || "";
|
||||
this.text = vn.attrs.text;
|
||||
this.childs = vn.attrs.childs || [];
|
||||
this.nested = vn.attrs.nested || false;
|
||||
},
|
||||
onbeforeupdate:function(vn, old) {
|
||||
// console.log(vn.attrs.childs);
|
||||
this.title = vn.attrs.title;
|
||||
this.title = vn.attrs.title || "";
|
||||
this.text = vn.attrs.text;
|
||||
this.childs = vn.attrs.childs;
|
||||
this.childs = vn.attrs.childs || [];
|
||||
this.nested = vn.attrs.nested || false;
|
||||
// if(vn.attrs.id == '1d1') console.log('_Enonce UPDATE, text :', vn.attrs.text);
|
||||
},
|
||||
@@ -232,7 +232,7 @@ var _Enonce = {
|
||||
},
|
||||
[
|
||||
// create title node
|
||||
m("h2", {}, this.title),
|
||||
m("h2", {}, m.trust(markdown.renderInline(this.title))),
|
||||
// create text node
|
||||
m(_Text, {'text':this.text, 'id':this.id}),
|
||||
// addd children
|
||||
|
||||
Reference in New Issue
Block a user