Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
amsik committed Sep 24, 2019
1 parent cfd613f commit bf104ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "liquor-tree",
"description": "A Vue.js tree component.",
"version": "0.2.64",
"version": "0.2.65",
"author": "Kostiantyn <phlyze@gmail.com>",
"library": "LiquorTree",
"homepage": "https://amsik.github.io/liquor-tree/",
Expand Down Expand Up @@ -57,6 +57,7 @@
"vue-template-compiler": "^2.5.17"
},
"jest": {
"setupFiles": ["./test/setupTests.js"],
"moduleFileExtensions": [
"js",
"vue"
Expand Down
2 changes: 2 additions & 0 deletions src/lib/Tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,11 @@ export default class Tree {
setModel (data) {
this.model = this.parse(data, this.options.modelParse)

/* eslint-disable */
requestAnimationFrame(_ => {
this.vm.model = this.model
})
/* eslint-enable */

/**
* VueJS transform properties to reactives when constructor is running
Expand Down
3 changes: 3 additions & 0 deletions test/setupTests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
global.requestAnimationFrame = function (callback) {
setTimeout(callback, 0)
}

0 comments on commit bf104ad

Please sign in to comment.