We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 377be76 commit b3c6833Copy full SHA for b3c6833
src/lib/add-attrs.js
@@ -1,10 +1,11 @@
1
+import Vue from 'vue'
2
+
3
export default function addAttrs (vm, attrs) {
- const consoleWarnSave = console.error
- console.error = () => {}
4
+ Vue.config.silent = true
5
if (attrs) {
6
vm.$attrs = attrs
7
} else {
8
vm.$attrs = {}
9
}
- console.error = consoleWarnSave
10
+ Vue.config.silent = false
11
src/lib/add-listeners.js
export default function addListeners (vm, listeners) {
if (listeners) {
vm.$listeners = listeners
vm.$listeners = {}
0 commit comments