Skip to content

Commit

Permalink
Rename "class" => "myClass" since "class" is a reserved keyword, see #92
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 4, 2019
1 parent 16a3fe4 commit 27bb3fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/phet-software-design-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ const MyTrait = {

/**
* Adds MyTrait methods to the prototype.
* @param {SuperClass} class
* @param {SuperClass} myClass
*/
mixInto: ( class ) => {
assert && assert( _.includes( inheritance( class ), SuperClass ), 'Only SuperClass subclasses should mix MyTrait' );
mixInto: ( myClass ) => {
assert && assert( _.includes( inheritance( myClass ), SuperClass ), 'Only SuperClass classes should mix MyTrait' );

extend( class.prototype, {
extend( myClass.prototype, {

/**
* This should be called in the constructor of a SuperClass.
Expand Down

0 comments on commit 27bb3fb

Please sign in to comment.