Say I have a list if items, each item has field title
- items: [{tilte: 'title1'}, tilte: 'title2'}, ... ]
I want to bind to changes of title field of any list item.
Is there better way to implement this than:
- items.bind('change', function(ev, attr){
-
- if ( attr.match(/(\d+)\.title$/i) ){
- ....
- }
- })
-
?