millermedeiros / crossroads.js

JavaScript Routes
http://millermedeiros.github.com/crossroads.js/
1.44k stars 156 forks source link

require 'signals' on browser should be relative #91

Closed moshest closed 11 years ago

moshest commented 11 years ago

On the end of the library you should define it as:

define(['./signals'], factory);

instead of:

define(['signals'], factory);

millermedeiros commented 11 years ago

we use absolute IDs since you can place signals/crossroads anywhere you want to and you can use map and paths config to change the location easily. There is a big a chance that signals is being used elsewhere in the app so using an unique ID is better.