Skip to content

Commit

Permalink
fix for vue2 lifecycle ready => mounted
Browse files Browse the repository at this point in the history
  • Loading branch information
fritx committed Oct 17, 2016
1 parent 0fd7a49 commit 5cc2ef2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Camera.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 21,7 @@ export default {
this.obj.name = this.obj.name || this.constructor.name
},
ready () {
mounted () {
this.$dispatch('setCamera', this.obj)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Object3D.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 36,7 @@ export default {
this.obj.name = this.obj.name || this.constructor.name
},
ready () {
mounted () {
if (this.position) Object.assign(this.obj.position, this.position)
if (this.rotation) Object.assign(this.obj.rotation, this.rotation)
if (this.parent) this.parent.add(this.obj)
Expand Down
2 changes: 1 addition & 1 deletion src/components/Renderer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 32,7 @@ export default {
this.camera = null
},
ready () {
mounted () {
this.$els.container.appendChild(this.obj.domElement)
this.animate()
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Scene.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 27,7 @@ export default {
}
},
ready () {
mounted () {
this.$dispatch('setScene', this.obj)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/examples/Ocean.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 19,7 @@ export default {
this.mesh = this.createOcean()
},
ready () {
mounted () {
this.animate()
},
Expand Down

0 comments on commit 5cc2ef2

Please sign in to comment.