Skip to content

Commit

Permalink
Merge pull request aframevr#1978 from ryanbetts/bugfix-1977
Browse files Browse the repository at this point in the history
`raycaster-intersected` now passes a copy of this.intersectedEls inst…
  • Loading branch information
ngokevin authored Oct 13, 2016
2 parents 06d175f + 8c112fd commit 20f5aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/raycaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ module.exports.Component = registerComponent('raycaster', {
// Emit all intersections at once on raycasting entity.
if (intersections.length) {
el.emit('raycaster-intersection', {
els: intersectedEls,
els: intersectedEls.slice(),
intersections: intersections
});
}
Expand Down

0 comments on commit 20f5aa4

Please sign in to comment.