Skip to content

Commit

Permalink
Update documentation, see phetsims/axon#336
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Oct 2, 2020
1 parent dcb2727 commit d5389b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/input.html
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
} );

var objectTransform = new dot.Transform3( dot.Matrix3.scaling( 2 ).timesMatrix( dot.Matrix3.translation( 100, 50 ) ) );
var objects = axon.createObservableArray(); // {ObservableArray.<Property.<Vector2>>}
var objects = axon.createObservableArray(); // {ObservableArrayDef.<Property.<Vector2>>}
var objectNodes = []; // Node with { model: {Property.<Vector2>}, dragListener: {DragListener} }
function getObjectNode( object ) {
return objectNodes.filter( function( objectNode ) { return objectNode.model === object; } )[ 0 ];
Expand Down
4 changes: 2 additions & 2 deletions js/listeners/PressListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function PressListener( options ) {
this._collapseDragEvents = options.collapseDragEvents;
this._preferTargetCursor = options.preferTargetCursor;

// @public {ObservableArray.<Pointer>} - Contains all pointers that are over our button. Tracked by adding with
// @public {ObservableArrayDef.<Pointer>} - Contains all pointers that are over our button. Tracked by adding with
// 'enter' events and removing with 'exit' events.
this.overPointers = createObservableArray();

Expand Down Expand Up @@ -706,7 +706,7 @@ inherit( Object, PressListener, {

// NOTE: We don't require the pointer to be included here, since we may have added the listener after the 'enter'
// was fired. See https://github.com/phetsims/area-model-common/issues/159 for more details. This may be a
// no-op, which ObservableArray allows.
// no-op, which ObservableArrayDef allows.
this.overPointers.remove( event.pointer );

sceneryLog && sceneryLog.InputListener && sceneryLog.pop();
Expand Down

0 comments on commit d5389b2

Please sign in to comment.