Skip to content

Commit caa8868

Browse files
committed
Fix bug where component was re-using constructed beforeCreate function in tests
1 parent de333f0 commit caa8868

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/lib/addProvide.js

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ function addProvide (component, options) {
1414
if (originalBeforeCreate) {
1515
originalBeforeCreate.call(this)
1616
}
17+
18+
component.beforeCreate = originalBeforeCreate
1719
}
1820
}
1921

0 commit comments

Comments
 (0)