jupiterjs/canjs — Issue #5: Make sure Control can listen to Dojo and YUI widgets
Author: justinbmeyer
Created: 2012-03-01 10:38:45+00:00
State: open

I'm not sure how to listen for events on a YUI or Dojo widget (probably connect for Dojo). I want to be able to listen to events on a control directly w/ control like:

```javascript
MyForm = can.Control({
"{datepicker} dateSelected" : function(){

}
})

new MyForm("#myform",{ datePicker : new Y.datepicker() })
```

This will probably involve making can.bind / can.trigger / etc use the underlying event system instead of what's in events.js