Skip to content

Commit 6806607

Browse files
author
Damian Dulisz
committed
Fix deepClone export
1 parent 7de4345 commit 6806607

File tree

7 files changed

+12
-8
lines changed

7 files changed

+12
-8
lines changed

lib/multiselectMixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { deepClone } from './utils'
1+
import deepClone from './utils'
22

33
module.exports = {
44
data () {

lib/utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copied from Vuex.
44
* @type {Object}
55
*/
6-
export function deepClone (obj) {
6+
const deepClone = function (obj) {
77
if (Array.isArray(obj)) {
88
return obj.map(deepClone)
99
} else if (obj && typeof obj === 'object') {
@@ -18,3 +18,5 @@ export function deepClone (obj) {
1818
return obj
1919
}
2020
}
21+
22+
module.exports = deepClone

lib/vue-multiselect.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/vue-multiselect.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import Multiselect from './Multiselect'
77
import multiselectMixin from './multiselectMixin'
88
import pointerMixin from './pointerMixin'
9-
import utils from './utils'
9+
import deepClone from './utils'
1010

1111
export default Multiselect
1212

13-
export { Multiselect, multiselectMixin, pointerMixin, utils }
13+
export { Multiselect, multiselectMixin, pointerMixin, deepClone }

src/multiselectMixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { deepClone } from './utils'
1+
import deepClone from './utils'
22

33
module.exports = {
44
data () {

src/utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copied from Vuex.
44
* @type {Object}
55
*/
6-
export function deepClone (obj) {
6+
const deepClone = function (obj) {
77
if (Array.isArray(obj)) {
88
return obj.map(deepClone)
99
} else if (obj && typeof obj === 'object') {
@@ -18,3 +18,5 @@ export function deepClone (obj) {
1818
return obj
1919
}
2020
}
21+
22+
module.exports = deepClone

0 commit comments

Comments
 (0)