File tree 2 files changed +5
-15
lines changed 2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ PageDots.prototype._create = function() {
48
48
this . holder . className = 'flickity-page-dots' ;
49
49
// create dots, array of elements
50
50
this . dots = [ ] ;
51
- // tap
51
+ // events
52
52
this . on ( 'tap' , this . onTap ) ;
53
-
53
+ this . on ( 'pointerDown' , this . parent . childUIPointerDown . bind ( this . parent ) ) ;
54
54
} ;
55
55
56
56
PageDots . prototype . activate = function ( ) {
@@ -151,10 +151,6 @@ proto._createPageDots = function() {
151
151
this . on ( 'cellChange' , this . updatePageDots ) ;
152
152
this . on ( 'resize' , this . updatePageDots ) ;
153
153
this . on ( 'deactivate' , this . deactivatePageDots ) ;
154
-
155
- this . pageDots . on ( 'pointerDown' , function ( event ) {
156
- this . childUIPointerDown ( event ) ;
157
- } . bind ( this ) ) ;
158
154
} ;
159
155
160
156
proto . activatePageDots = function ( ) {
Original file line number Diff line number Diff line change @@ -64,16 +64,10 @@ PrevNextButton.prototype._create = function() {
64
64
// create arrow
65
65
var svg = this . createSVG ( ) ;
66
66
element . appendChild ( svg ) ;
67
- // update on select
68
- this . parent . on ( 'select' , function ( ) {
69
- this . update ( ) ;
70
- } . bind ( this ) ) ;
71
- // tap
67
+ // events
72
68
this . on ( 'tap' , this . onTap ) ;
73
- // pointerDown
74
- this . on ( 'pointerDown' , function onPointerDown ( event ) {
75
- this . parent . childUIPointerDown ( event ) ;
76
- } . bind ( this ) ) ;
69
+ this . parent . on ( 'select' , this . update . bind ( this ) ) ;
70
+ this . on ( 'pointerDown' , this . parent . childUIPointerDown . bind ( this . parent ) ) ;
77
71
} ;
78
72
79
73
PrevNextButton . prototype . activate = function ( ) {
You can’t perform that action at this time.
0 commit comments