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() { mounted: function() {
this.$nextTick(() => {
this.update(); this.update();
})
}, },
components: { components: {
configSection: { configSection: {
@ -56,8 +58,6 @@ $(document).ready(() => {
content: this.editContent content: this.editContent
} }
}).then(function(data){ }).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){ _.each(data, function(v,k){
self[k] = v; self[k] = v;
}); });