|
42 | 42 |
|
43 | 43 | // add event listener to toolbar to start and end drag |
44 | 44 | // other event listeners will be added when drag starts |
45 | | - $toolbar.on('mousedown', function(event) { |
46 | | - event.stopPropagation(); |
| 45 | + $toolbar.on('mousedown', function(e) { |
| 46 | + e.stopPropagation(); |
47 | 47 | if (!thisObj.windowMenuClickRegistered) { |
48 | 48 | thisObj.windowMenuClickRegistered = true; |
49 | | - thisObj.startMouseX = event.pageX; |
50 | | - thisObj.startMouseY = event.pageY; |
| 49 | + thisObj.startMouseX = e.pageX; |
| 50 | + thisObj.startMouseY = e.pageY; |
51 | 51 | thisObj.dragDevice = 'mouse'; |
52 | 52 | thisObj.startDrag(which, $window); |
53 | 53 | } |
54 | 54 | return false; |
55 | 55 | }); |
56 | | - $toolbar.on('mouseup', function(event) { |
57 | | - event.stopPropagation(); |
| 56 | + $toolbar.on('mouseup', function(e) { |
| 57 | + e.stopPropagation(); |
58 | 58 | if (thisObj.dragging && thisObj.dragDevice === 'mouse') { |
59 | 59 | thisObj.endDrag(which); |
60 | 60 | } |
61 | 61 | return false; |
62 | 62 | }); |
63 | 63 |
|
64 | 64 | // add event listeners for resizing |
65 | | - $resizeHandle.on('mousedown', function(event) { |
| 65 | + $resizeHandle.on('mousedown', function(e) { |
66 | 66 |
|
67 | | - event.stopPropagation(); |
| 67 | + e.stopPropagation(); |
68 | 68 | if (!thisObj.windowMenuClickRegistered) { |
69 | 69 | thisObj.windowMenuClickRegistered = true; |
70 | | - thisObj.startMouseX = event.pageX; |
71 | | - thisObj.startMouseY = event.pageY; |
| 70 | + thisObj.startMouseX = e.pageX; |
| 71 | + thisObj.startMouseY = e.pageY; |
72 | 72 | thisObj.startResize(which, $window); |
73 | 73 | return false; |
74 | 74 | } |
75 | 75 | }); |
76 | 76 |
|
77 | | - $resizeHandle.on('mouseup', function(event) { |
78 | | - event.stopPropagation(); |
| 77 | + $resizeHandle.on('mouseup', function(e) { |
| 78 | + e.stopPropagation(); |
79 | 79 | if (thisObj.resizing) { |
80 | 80 | thisObj.endResize(which); |
81 | 81 | } |
|
163 | 163 | 'class' : 'able-tooltip', |
164 | 164 | 'id' : tooltipId |
165 | 165 | }).hide(); |
166 | | - $newButton.on('mouseenter focus',function(event) { |
| 166 | + $newButton.on('mouseenter focus',function(e) { |
167 | 167 | var label = $(this).attr('aria-label'); |
168 | 168 | // get position of this button |
169 | 169 | var position = $(this).position(); |
|
385 | 385 | } |
386 | 386 | }; |
387 | 387 |
|
388 | | - AblePlayer.prototype.handleMenuChoice = function (which, choice, event) { |
| 388 | + AblePlayer.prototype.handleMenuChoice = function (which, choice, e) { |
389 | 389 |
|
390 | 390 | var thisObj, $window, $windowPopup, $windowButton, resizeDialog, $thisRadio; |
391 | 391 |
|
|
404 | 404 | resizeDialog = this.signResizeDialog; |
405 | 405 | } |
406 | 406 |
|
407 | | - if (event.type === 'keydown') { |
408 | | - if (event.which === 27) { // escape |
| 407 | + if (e.type === 'keydown') { |
| 408 | + if (e.which === 27) { // escape |
409 | 409 | // hide the popup menu |
410 | 410 | $windowPopup.hide('fast', function() { |
411 | 411 | // also reset the Boolean |
|
444 | 444 | this.showedSignAlert = true; |
445 | 445 | } |
446 | 446 | } |
447 | | - if (event.type === 'keydown') { |
| 447 | + if (e.type === 'keydown') { |
448 | 448 | this.dragDevice = 'keyboard'; |
449 | 449 | } |
450 | 450 | else { |
|
0 commit comments