File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 9
9
ionic . activator = {
10
10
11
11
start : function ( e ) {
12
+ var self = this ;
12
13
13
14
// when an element is touched/clicked, it climbs up a few
14
15
// parents to see if it is an .item or .button element
39
40
40
41
// in XX milliseconds, set the queued elements to active
41
42
if ( e . type === 'touchstart' ) {
42
- setTimeout ( activateElements , 80 ) ;
43
+ self . _activateTimeout = setTimeout ( activateElements , 80 ) ;
43
44
} else {
44
45
ionic . requestAnimationFrame ( activateElements ) ;
45
46
}
52
53
53
54
end : function ( ) {
54
55
// clear out any active/queued elements after XX milliseconds
56
+ clearTimeout ( this . _activateTimeout )
55
57
setTimeout ( clear , 200 ) ;
56
58
}
57
59
66
68
}
67
69
68
70
function activateElements ( ) {
71
+ console . log ( 'ACTIVATING' ) ;
69
72
// activate all elements in the queue
70
73
for ( var key in queueElements ) {
71
74
if ( queueElements [ key ] ) {
You can’t perform that action at this time.
0 commit comments