Skip to content

Commit dcf977e

Browse files
committed
refactor: remove component cloning
1 parent df706fe commit dcf977e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+67
-218
lines changed

docs/en/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
- [attachToDocument](api/options.md#attachtodocument)
2626
- [attrs](api/options.md#attrs)
2727
- [listeners](api/options.md#listeners)
28-
- [clone](api/options.md#clone)
2928
- [provide](api/options.md#provide)
3029
- [other options](api/options.md#other-options)
3130
* [Wrapper](api/wrapper/README.md)

docs/en/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
- [attachToDocument](api/options.md#attachtodocument)
2222
- [attrs](api/options.md#attrs)
2323
- [listeners](api/options.md#listeners)
24-
- [clone](api/options.md#clone)
2524
- [provide](api/options.md#provide)
2625
- [other options](api/options.md#other-options)
2726
* [Wrapper](api/wrapper/README.md)

docs/en/api/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
- [attachToDocument](./options.md#attachtodocument)
1212
- [attrs](./options.md#attrs)
1313
- [listeners](./options.md#listeners)
14-
- [clone](./options.md#clone)
1514
- [provide](./options.md#provide)
1615
- [other options](./options.md#other-options)
1716
* [Wrapper](./wrapper/README.md)

docs/en/api/options.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Options for `mount` and `shallow`. The options object can contain both `vue-test
1212
- [`attachToDocument`](#attachtodocument)
1313
- [`attrs`](#attrs)
1414
- [`listeners`](#listeners)
15-
- [`clone`](#clone)
1615
- [`provide`](#provide)
1716

1817
### `context`
@@ -165,20 +164,13 @@ Set the component instance's `$attrs` object.
165164

166165
Set the component instance's `$listeners` object.
167166

168-
### `clone`
169-
170-
- type: `boolean`
171-
- default: `true`
172-
173-
Clones component before mounting if `true`, which avoids mutating the original component definition.
174-
175167
### `provide`
176168

177169
- type: `Object`
178170

179171
Pass properties for components to use in injection. See [provide/inject](https://vuejs.org/v2/api/#provide-inject).
180172

181-
## Other options
173+
## Other options
182174

183175
When the options for `mount` and `shallow` contain the options other than the mounting options, the component options are overwritten with those using [extends](https://vuejs.org/v2/api/#extends).
184176

docs/en/api/shallow.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
- `{Array<Componet|Object>|Component|String} named`
1313
- `{Object} mocks`
1414
- `{Object|Array<string>} stubs`
15-
- `{boolean} clone`
1615
- `{Vue} localVue`
1716

1817
- **Returns:** `{Wrapper}`

docs/fr/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
- [attachToDocument](api/options.md#attachtodocument)
2626
- [attrs](api/options.md#attrs)
2727
- [listeners](api/options.md#listeners)
28-
- [clone](api/options.md#clone)
2928
* [Wrapper](api/wrapper/README.md)
3029
* [contains](api/wrapper/contains.md)
3130
* [emitted](api/wrapper/emitted.md)

docs/fr/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
- [attachToDocument](api/options.md#attachtodocument)
2222
- [attrs](api/options.md#attrs)
2323
- [listeners](api/options.md#listeners)
24-
- [clone](api/options.md#clone)
2524
* [Wrapper](api/wrapper/README.md)
2625
* [contains](api/wrapper/contains.md)
2726
* [emitted](api/wrapper/emitted.md)

docs/fr/api/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
- [attachToDocument (EN)](./options.md#attachtodocument)
1212
- [attrs (EN)](./options.md#attrs)
1313
- [listeners (EN)](./options.md#listeners)
14-
- [clone (EN)](./options.md#clone)
1514
* [Wrapper (EN)](./wrapper/README.md)
1615
* [contains (EN)](./wrapper/contains.md)
1716
* [emitted (EN)](./wrapper/emitted.md)

docs/fr/api/options.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Vue options are passed to the component when a new instance is created. , e.g. `
1414
- [`attachToDocument`](#attachtodocument)
1515
- [`attrs`](#attrs)
1616
- [`listeners`](#listeners)
17-
- [`clone`](#clone)
1817

1918
### `context`
2019

@@ -153,13 +152,6 @@ Set the component instance's `$attrs` object.
153152

154153
Set the component instance's `$listeners` object.
155154

156-
### `clone`
157-
158-
- type: `boolean`
159-
- default: `true`
160-
161-
Clones component before mounting if `true`, which avoids mutating the original component definition.
162-
163155
`options.mocks` (`Object`): Add globals to Vue instance.
164156

165157
`options.localVue` (`Object`): `Vue` class to use in `mount`. See [`createLocalVue`](createLocalVue.md).

docs/fr/api/shallow.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
- `{Array<Componet|Object>|Component|String} named`
1212
- `{Object} mocks`
1313
- `{Object|Array<string>} stubs`
14-
- `{boolean} clone`
1514
- `{Object} children`
1615
- `{Vue} localVue`
1716

0 commit comments

Comments
 (0)