Skip to content

Commit

Permalink
Corrected documentation indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Cormack committed Dec 3, 2016
1 parent c2989e2 commit b5eb464
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions src/utilities/behaviors/JointCollisionEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,16 @@ altspace.utilities.behaviors.JointCollisionEvents = function(_config) {

// Dispatch collision event
if(!hasPrevCollided && hasCollided) {
/**
* Fires a single event when any specified joints initially collide with the behavior's parent object.
*
* @event jointcollisionenter
* @property {Object} [detail] Event details
* @property {THREE.Box3} [detail.intersect] - A union of all joint bounding boxes which intersected with the behavior's parent object.
* @property {TrackingJoint[]} [detail.joints] - An array of joints which which were involved in the intersection union.
* @property {THREE.Object3D} [target] - The behavior's parent object which was intersected.
* @memberof module:altspace/utilities/behaviors.JointCollisionEvents
*/
/**
* Fires a single event when any specified joints initially collide with the behavior's parent object.
*
* @event jointcollisionenter
* @property {Object} [detail] Event details
* @property {THREE.Box3} [detail.intersect] - A union of all joint bounding boxes which intersected with the behavior's parent object.
* @property {TrackingJoint[]} [detail.joints] - An array of joints which which were involved in the intersection union.
* @property {THREE.Object3D} [target] - The behavior's parent object which was intersected.
* @memberof module:altspace/utilities/behaviors.JointCollisionEvents
*/
object3d.dispatchEvent({
type: 'jointcollisionenter',
detail: {
Expand All @@ -164,13 +164,13 @@ altspace.utilities.behaviors.JointCollisionEvents = function(_config) {
});
}
else if(hasPrevCollided && !hasCollided) {
/**
* Fires a single event when all joints are no longer colliding with the behavior's parent object.
*
* @event jointcollisionleave
* @property {THREE.Object3D} [target] - The behavior's parent object which was intersected.
* @memberof module:altspace/utilities/behaviors.JointCollisionEvents
*/
/**
* Fires a single event when all joints are no longer colliding with the behavior's parent object.
*
* @event jointcollisionleave
* @property {THREE.Object3D} [target] - The behavior's parent object which was intersected.
* @memberof module:altspace/utilities/behaviors.JointCollisionEvents
*/
object3d.dispatchEvent({
type: 'jointcollisionleave',
bubbles: true,
Expand All @@ -180,16 +180,16 @@ altspace.utilities.behaviors.JointCollisionEvents = function(_config) {

// Dispatch collision event
if(hasCollided) {
/**
* Fires a continuous event while any joints are colliding with the behavior's parent object.
*
* @event jointcollision
* @property {Object} [detail] Event details
* @property {THREE.Box3} [detail.intersect] - A union of all joint bounding boxes which intersected with the behavior's parent object.
* @property {TrackingJoint[]} [detail.joints] - An array of joints which which were involved in the intersection union.
* @property {THREE.Object3D} [target] - The behavior's parent object which was intersected.
* @memberof module:altspace/utilities/behaviors.JointCollisionEvents
*/
/**
* Fires a continuous event while any joints are colliding with the behavior's parent object.
*
* @event jointcollision
* @property {Object} [detail] Event details
* @property {THREE.Box3} [detail.intersect] - A union of all joint bounding boxes which intersected with the behavior's parent object.
* @property {TrackingJoint[]} [detail.joints] - An array of joints which which were involved in the intersection union.
* @property {THREE.Object3D} [target] - The behavior's parent object which was intersected.
* @memberof module:altspace/utilities/behaviors.JointCollisionEvents
*/
object3d.dispatchEvent({
type: 'jointcollision',
detail: {
Expand Down

0 comments on commit b5eb464

Please sign in to comment.