Suppress JavaScript warnings

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-09-28 10:48:40 +09:00
parent 76f8c37150
commit 39f80f08d5
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1
2 changed files with 9 additions and 5 deletions

View File

@ -45,8 +45,10 @@ const ConfigField = {
}
this.$nextTick(() => {
console.log("config-field updated");
if ($("[data-toggle=tooltip]").tooltip) {
$("[data-toggle=tooltip]").tooltip("dispose");
$("[data-toggle=tooltip]").tooltip("enable");
}
});
},

View File

@ -41,11 +41,13 @@ $(document).ready(() => {
},
mounted: function() {
this.parse = {};
this.$on("hook:updated", () => {
},
updated: function() {
this.$nextTick(() => {
if ($("[data-toggle=tooltip]").tooltip) {
$("[data-toggle=tooltip]").tooltip("dispose");
$("[data-toggle=tooltip]").tooltip("enable");
});
}
});
},
methods: {