mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Interaction: Pass widget() result to _bind call to allow binding to elements outside this.element
This commit is contained in:
parent
8b47438d6c
commit
9f454b2f3d
6
ui/jquery.ui.interaction.js
vendored
6
ui/jquery.ui.interaction.js
vendored
@ -92,7 +92,7 @@ $.extend( interaction, {
|
|||||||
|
|
||||||
interaction.hooks.mouse = {
|
interaction.hooks.mouse = {
|
||||||
setup: function( widget, start ) {
|
setup: function( widget, start ) {
|
||||||
widget._bind({
|
widget._bind( widget.widget(), {
|
||||||
"mousedown": function( event ) {
|
"mousedown": function( event ) {
|
||||||
// only react to the primary button
|
// only react to the primary button
|
||||||
if ( event.which === 1 ) {
|
if ( event.which === 1 ) {
|
||||||
@ -151,7 +151,7 @@ function getTouch( event ) {
|
|||||||
|
|
||||||
var touchHook = interaction.hooks.touch = {
|
var touchHook = interaction.hooks.touch = {
|
||||||
setup: function( widget, start ) {
|
setup: function( widget, start ) {
|
||||||
widget._bind({
|
widget._bind( widget.widget(), {
|
||||||
"touchstart": function( event ) {
|
"touchstart": function( event ) {
|
||||||
var touch, started;
|
var touch, started;
|
||||||
|
|
||||||
@ -216,7 +216,7 @@ var touchHook = interaction.hooks.touch = {
|
|||||||
|
|
||||||
var pointerHook = interaction.hooks.msPointer = {
|
var pointerHook = interaction.hooks.msPointer = {
|
||||||
setup: function( widget, start ) {
|
setup: function( widget, start ) {
|
||||||
widget._bind({
|
widget._bind( widget.widget(), {
|
||||||
"MSPointerDown": function( _event ) {
|
"MSPointerDown": function( _event ) {
|
||||||
var started,
|
var started,
|
||||||
event = _event.originalEvent;
|
event = _event.originalEvent;
|
||||||
|
Loading…
Reference in New Issue
Block a user