Skip to content

Commit

Permalink
added TBAAGameChallenge to serialize challenge model state, phetsims/…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 18, 2018
1 parent 64db285 commit 0366510
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/types/TArray.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ define( function( require ) {
* @returns {Array}
*/
toStateObject: function( array ) {
assert && assert( elementType.toStateObject, elementType.typeName + ' does not have a toStateObject method.');

var json = [];
for ( var i = 0; i < array.length; i++ ) {
json.push( elementType.toStateObject( array[ i ] ) );
Expand Down

0 comments on commit 0366510

Please sign in to comment.