I think that is the problem. The can.js file didn't steal that plugin at all.
For 1.1.3 you'll probably need to additionally require can/control/route in the control like this:
- define(["can", "can/control/route"],function(can){
- var HelloWorldController = can.Control({
- 'click':function(el,event){
- console.log(el, " Clicked"); // this works
- },
- 'route': function() {
- // matches empty hash, #, or #!
- console.log("EMPTY ROUTE"); // Does not work
- },
- 'about/:id route': function( data ) {
- // matches routes like #!todos/5
- console.log("ROUTE", data);// Does not work
- }
- });
- return HelloWorldController;
- });
Since it is already fixed for people using Steal I just confirmed that it will also be part of the AMD build for the next version.