File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ do ($$ = Quo) ->
73
73
@param {function} A function to execute when the event is triggered
74
74
###
75
75
$$ .fn .bind = (event , callback ) ->
76
- @ each -> _subscribe @ , event, callback
76
+ @forEach ( element ) -> _subscribe element , event, callback
77
77
78
78
79
79
###
Original file line number Diff line number Diff line change @@ -16,13 +16,6 @@ Quo.Gestures = do ($$ = Quo) ->
16
16
_originalEvent = null
17
17
_disabled_tags = [" input" , " select" , " textarea" ]
18
18
19
- $$ (document ).ready ->
20
- environment = $$ document .body
21
- environment .bind " touchstart" , _start
22
- environment .bind " touchmove" , _move
23
- environment .bind " touchend" , _end
24
- environment .bind " touchcancel" , _cancel
25
-
26
19
add = (gesture ) ->
27
20
_handlers[gesture .name ] = gesture .handler
28
21
_addDelegations gesture .events
@@ -68,5 +61,12 @@ Quo.Gestures = do ($$ = Quo) ->
68
61
_getFingers = (event ) ->
69
62
({x : t .pageX , y : t .pageY } for t in event .touches or [event])
70
63
64
+ $$ (document ).ready ->
65
+ environment = $$ document .body
66
+ environment .bind " touchstart" , _start
67
+ environment .bind " touchmove" , _move
68
+ environment .bind " touchend" , _end
69
+ environment .bind " touchcancel" , _cancel
70
+
71
71
add : add
72
72
trigger : trigger
You can’t perform that action at this time.
0 commit comments