I also like this idea but was thinking the 'selector' could be something a little more along the lines of
- $( '#container ').delegate({
- '.lorem': {
- 'click': function( event ) {
- //code to go here
- },
- 'hover': function( event ) {
- //code to go here
- },
- '.ipsum': {
- 'click': function( event ) {
- //code to go here
- }
- }
- });
It is a little specific I know, but for my current application it would be a nice feature to have.