Use transitionEnd, and check to make sure the event target is the element bound to, not a child element.
- '#list transitionend': 'refresh',
- '#list webkitTransitionEnd': 'refresh',
- '#list oTransitionEnd': 'refresh',
- '#list MSTransitionEnd': 'refresh',
- refresh: function( el, ev ) {
- // Check to see if it's a change event, or otherwise that the event target is the dom element bound to, and not a child element
- if(ev.type === 'change' || ev.target === el[0]) {
- ....
- }
- }