phetsims / bending-light

"Bending Light" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/bending-light
GNU General Public License v3.0
8 stars 8 forks source link

Clarify dissalowed WebGL comment #274

Closed jessegreenberg closed 8 years ago

jessegreenberg commented 8 years ago

Part of #268. In BendingLightModel, the following line and comment exists:

    // if WebGL support then particles creation and propagation not need else we should create particles and propagate
    // to render them on canvas. Check to see if WebGL was prevented by a query parameter
    var disallowWebGL = phet.chipper.getQueryParameter( 'webgl' ) === 'false';

The code is clear, but the additional comment above this line is hard to understand. @samreid could you please clarify this documentation?

samreid commented 8 years ago

That comment was very confusing and unnecessary, I removed it in the above commit.

jessegreenberg commented 8 years ago

Sounds good, and looks good too. Thanks! Closing.