phetsims / wave-on-a-string

"Wave on a String" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/wave-on-a-string
GNU General Public License v3.0
7 stars 8 forks source link

require() for files in the sim repo should prefix 'WOAS/' #25

Closed jonathanolson closed 10 years ago

jonathanolson commented 10 years ago

For example, instead of:

var StartNode = require( 'view/action/StartNode' );

it should be

var StartNode = require( 'WOAS/view/action/StartNode' );

This will allow the sim code to work in the same require.js context as other sim code (or be loaded at other times), as to support things like https://github.com/phetsims/smorgasbord