I know that only 'click' and 'mouseover' and 'mouseout' are supported, but I want to effectively change 'click' on line 8 to 'touchend'. I'm having difficulty modifying the core jquery.usmap.js script to add this as an event. Has anyone done this?
I see the posts here where in the methods in the js, people are adding touchend in places such as:
" $(this.stateHitAreas[state].node).bind('click touchend', this._onClickProxy);"
But that does not allow an external event to be indicated, such as in my pastebin. It seems someone must have this implemented by now, so I thought I'd ask.
Note the code snippet at this pastebin: http://pastebin.com/88K0AMb9
I know that only 'click' and 'mouseover' and 'mouseout' are supported, but I want to effectively change 'click' on line 8 to 'touchend'. I'm having difficulty modifying the core jquery.usmap.js script to add this as an event. Has anyone done this?
I see the posts here where in the methods in the js, people are adding touchend in places such as: " $(this.stateHitAreas[state].node).bind('click touchend', this._onClickProxy);"
But that does not allow an external event to be indicated, such as in my pastebin. It seems someone must have this implemented by now, so I thought I'd ask.
Thanks