phetsims / ohms-law

"Ohm's Law" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/ohms-law
GNU General Public License v3.0
5 stars 6 forks source link

problems with WireBox #113

Closed pixelzoom closed 6 years ago

pixelzoom commented 6 years ago

(1) WireBox is passing one set of options to Node.call, another set to mutate. This is an anti-pattern, and will potentially cause initialization problems with PhET-iO.

(2) The assumption documented on line 92, this assumes that it is a child of a 'ul', should be backed up with an assertion. Something like assert && assert( options.tagName === 'ul', ... ).

zepumph commented 6 years ago

Good comments, thanks.