Story.setContent (newContent) |
Sets this text's content to a new content object. This should be used instead
of this.content.setAll() to make sure also set the rawcontent property is set.
|
Sourcecode in Story/objectFunctions.js:
1: function setContent(newContent) { 2: this.content.setAll(newContent); 3: // set rawcontent property used for searching 4: res.push(); 5: for (var i in newContent) { 6: res.write(newContent[i]+'\r\n'); 7: } 8: this.rawcontent = res.pop(); 9: } |