add mark/measure

This commit is contained in:
Nolan Lawson 2018-03-03 14:58:45 -08:00
parent 3dc46791e9
commit 695ac7eae3
1 changed files with 2 additions and 0 deletions

View File

@ -49,9 +49,11 @@
const saveText = debounce(() => scheduleIdleTask(() => this.store.save()), 1000)
this.observe('rawText', rawText => {
mark('observe rawText')
let realm = this.get('realm')
this.store.setComposeData(realm, {text: rawText})
saveText()
stop('observe rawText')
}, {init: false})
},
setupAutosize() {