Oops... It's working with:

    $.each(['touches', 'targetTouches'], function(i, propName){
        if ( $.inArray(propName, $.event.props) < 0 ) {
            $.event.props.push(propName);
        }
    });

I had the inArray signature wrong and inArray returns the index or -1.

On Oct 24, 8:36 pm, dinoboff <dinob...@googlemail.com> wrote:
> I tried adding them to $.event.props like this:
>
>         $.each(['touches', 'targetTouches'], function(){
>                 if (!($.inArray($.event.props, this))) {
>                         $.event.props.push(this);
>                 }
>         });
>
> But it doesn't seem to work.

Reply via email to