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 c30d15e commit 83b325b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/Poolable.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2015, University of Colorado Boulder

/**
* Object pooling mix-in, for cases where creating new objects is expensive, and we'd rather mark some objects as able
* Object pooling trait, for cases where creating new objects is expensive, and we'd rather mark some objects as able
* to be reused (i.e. 'in the pool'). This provides a pool of objects for each type it is invoked on. It allows for
* getting "new" objects that can either be constructed OR pulled in from a pool, and requires that the objects are
* essentially able to "re-run" the constructor.
Expand Down Expand Up @@ -38,7 +38,7 @@ define( function( require ) {
* @param {function} type - The constructor for the type
* @param {Object} [options] -
*/
mixin: function( type, options ) {
mixInto: function( type, options ) {
var proto = type.prototype;

// defaults
Expand Down

0 comments on commit 83b325b

Please sign in to comment.