Skip to content

Commit

Permalink
mixin => mixInto() and trait (with added assertions). See phetsims/sc…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Oct 26, 2017
1 parent 2c921cb commit e58198c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion js/ops/Boundary.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ define( function( require ) {
}
} );

Poolable.mixin( Boundary, {
Poolable.mixInto( Boundary, {
constructorDuplicateFactory: function( pool ) {
return function( halfEdges ) {
if ( pool.length ) {
Expand Down
2 changes: 1 addition & 1 deletion js/ops/BoundsIntersection.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ define( function( require ) {
}
} );

Poolable.mixin( BoundsIntersection, {
Poolable.mixInto( BoundsIntersection, {
constructorDuplicateFactory: function( pool ) {
return function( a, b, atMin, atMax, btMin, btMax, aMin, aMax, bMin, bMax ) {
if ( pool.length ) {
Expand Down
2 changes: 1 addition & 1 deletion js/ops/Edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ define( function( require ) {
}
} );

Poolable.mixin( Edge, {
Poolable.mixInto( Edge, {
constructorDuplicateFactory: function( pool ) {
return function( segment, startVertex, endVertex ) {
if ( pool.length ) {
Expand Down
2 changes: 1 addition & 1 deletion js/ops/Face.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ define( function( require ) {
}
} );

Poolable.mixin( Face, {
Poolable.mixInto( Face, {
constructorDuplicateFactory: function( pool ) {
return function( boundary ) {
if ( pool.length ) {
Expand Down
2 changes: 1 addition & 1 deletion js/ops/HalfEdge.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ define( function( require ) {
}
} );

Poolable.mixin( HalfEdge, {
Poolable.mixInto( HalfEdge, {
constructorDuplicateFactory: function( pool ) {
return function( edge, isReversed ) {
if ( pool.length ) {
Expand Down
2 changes: 1 addition & 1 deletion js/ops/Loop.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ define( function( require ) {
}
} );

Poolable.mixin( Loop, {
Poolable.mixInto( Loop, {
constructorDuplicateFactory: function( pool ) {
return function( shapeId ) {
if ( pool.length ) {
Expand Down
2 changes: 1 addition & 1 deletion js/ops/Vertex.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ define( function( require ) {
}
} );

Poolable.mixin( Vertex, {
Poolable.mixInto( Vertex, {
constructorDuplicateFactory: function( pool ) {
return function( point ) {
if ( pool.length ) {
Expand Down

0 comments on commit e58198c

Please sign in to comment.