Stop using ready

Because ready is removed.

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-05-17 17:56:30 +09:00
parent b962d0e91a
commit 038742e621
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1

View File

@ -11,8 +11,10 @@ $(document).ready(() => {
}
};
},
ready: function() {
this.update();
mounted: function() {
this.$nextTick(() => {
this.update();
})
},
components: {
configSection: {
@ -56,8 +58,6 @@ $(document).ready(() => {
content: this.editContent
}
}).then(function(data){
// NOTE: self.$data = data doesn't work as well, so using _.each
// whole $data swapping breaks mode switching..
_.each(data, function(v,k){
self[k] = v;
});