Skip to content

Commit e4314bc

Browse files
committed
Use .on and .off and use $
1 parent 5b2f7b5 commit e4314bc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

external/pointer.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ function processEvent( event, pointerType ) {
4545

4646
$.event.special.pointerdown = {
4747
setup: function() {
48-
$( this ).bind( "mousedown touchstart MSPointerDown", jQuery.event.special.pointerdown.handler );
48+
$( this ).on( "mousedown touchstart MSPointerDown", $.event.special.pointerdown.handler );
4949
},
5050
teardown: function() {
51-
$( this ).unbind( "mousedown touchstart MSPointerDown", jQuery.event.special.pointerdown.handler );
51+
$( this ).off( "mousedown touchstart MSPointerDown", $.event.special.pointerdown.handler );
5252
},
5353
handler: function( event ) {
5454
event = processEvent( event, "pointerdown" );
@@ -58,10 +58,10 @@ $.event.special.pointerdown = {
5858

5959
$.event.special.pointerup = {
6060
setup: function() {
61-
$( this ).bind( "mouseup touchend MSPointerUp", jQuery.event.special.pointerup.handler );
61+
$( this ).on( "mouseup touchend MSPointerUp", $.event.special.pointerup.handler );
6262
},
6363
teardown: function() {
64-
$( this ).unbind( "mouseup touchend MSPointerUp", jQuery.event.special.pointerup.handler );
64+
$( this ).off( "mouseup touchend MSPointerUp", $.event.special.pointerup.handler );
6565
},
6666
handler: function( event ) {
6767
event = processEvent( event, "pointerup" );
@@ -71,10 +71,10 @@ $.event.special.pointerup = {
7171

7272
$.event.special.pointermove = {
7373
setup: function() {
74-
$( this ).bind( "mousemove touchmove MSPointerMove", jQuery.event.special.pointermove.handler );
74+
$( this ).on( "mousemove touchmove MSPointerMove", $.event.special.pointermove.handler );
7575
},
7676
teardown: function() {
77-
$( this ).unbind( "mousemove touchmove MSPointerMove", jQuery.event.special.pointermove.handler );
77+
$( this ).off( "mousemove touchmove MSPointerMove", $.event.special.pointermove.handler );
7878
},
7979
handler: function( event ) {
8080
event = processEvent( event, "pointermove" );

0 commit comments

Comments
 (0)