Skip to content

Commit

Permalink
Use this instead of this.phetioObject in PhET-iO API method implement…
Browse files Browse the repository at this point in the history
…ations, see phetsims/tandem#210
  • Loading branch information
samreid committed Sep 11, 2020
1 parent c910892 commit 0b9c0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/charges-and-fields/model/ChargedParticleIO.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ChargedParticleIO.methods = {
returnType: VoidIO,
parameterTypes: [ NumberIO ],
implementation: function( value ) {
this.phetioObject.charge = value.charge;
this.charge = value.charge;
},
documentation: 'Set charge (in units of e)',
invocableForReadOnlyElements: false
Expand Down

0 comments on commit 0b9c0f1

Please sign in to comment.