@@ -45,10 +45,10 @@ function processEvent( event, pointerType ) {
45
45
46
46
$ . event . special . pointerdown = {
47
47
setup : function ( ) {
48
- $ ( this ) . bind ( "mousedown touchstart MSPointerDown" , jQuery . event . special . pointerdown . handler ) ;
48
+ $ ( this ) . on ( "mousedown touchstart MSPointerDown" , $ . event . special . pointerdown . handler ) ;
49
49
} ,
50
50
teardown : function ( ) {
51
- $ ( this ) . unbind ( "mousedown touchstart MSPointerDown" , jQuery . event . special . pointerdown . handler ) ;
51
+ $ ( this ) . off ( "mousedown touchstart MSPointerDown" , $ . event . special . pointerdown . handler ) ;
52
52
} ,
53
53
handler : function ( event ) {
54
54
event = processEvent ( event , "pointerdown" ) ;
@@ -58,10 +58,10 @@ $.event.special.pointerdown = {
58
58
59
59
$ . event . special . pointerup = {
60
60
setup : function ( ) {
61
- $ ( this ) . bind ( "mouseup touchend MSPointerUp" , jQuery . event . special . pointerup . handler ) ;
61
+ $ ( this ) . on ( "mouseup touchend MSPointerUp" , $ . event . special . pointerup . handler ) ;
62
62
} ,
63
63
teardown : function ( ) {
64
- $ ( this ) . unbind ( "mouseup touchend MSPointerUp" , jQuery . event . special . pointerup . handler ) ;
64
+ $ ( this ) . off ( "mouseup touchend MSPointerUp" , $ . event . special . pointerup . handler ) ;
65
65
} ,
66
66
handler : function ( event ) {
67
67
event = processEvent ( event , "pointerup" ) ;
@@ -71,10 +71,10 @@ $.event.special.pointerup = {
71
71
72
72
$ . event . special . pointermove = {
73
73
setup : function ( ) {
74
- $ ( this ) . bind ( "mousemove touchmove MSPointerMove" , jQuery . event . special . pointermove . handler ) ;
74
+ $ ( this ) . on ( "mousemove touchmove MSPointerMove" , $ . event . special . pointermove . handler ) ;
75
75
} ,
76
76
teardown : function ( ) {
77
- $ ( this ) . unbind ( "mousemove touchmove MSPointerMove" , jQuery . event . special . pointermove . handler ) ;
77
+ $ ( this ) . off ( "mousemove touchmove MSPointerMove" , $ . event . special . pointermove . handler ) ;
78
78
} ,
79
79
handler : function ( event ) {
80
80
event = processEvent ( event , "pointermove" ) ;
0 commit comments