mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +02:00
[Case 4315] ESLint Pass 4 for colpick.js (details below).
Resolved payeX vs pageX issues. Resolved stopList & huebar undefined issues. Issue Count reduced from 47 to 29. Changes Committed: modified: scripts/system/html/js/colpick.js
This commit is contained in:
parent
0a1e05326e
commit
ef1fd19a98
1 changed files with 4 additions and 4 deletions
|
@ -211,7 +211,7 @@ For usage and examples: colpick.com/plugin
|
|||
$(document).on('mouseup touchend',current,upSelector);
|
||||
$(document).on('mousemove touchmove',current,moveSelector);
|
||||
|
||||
var payeX,pageY;
|
||||
var pageX,pageY;
|
||||
if (ev.type == 'touchstart') {
|
||||
pageX = ev.originalEvent.changedTouches[0].pageX,
|
||||
pageY = ev.originalEvent.changedTouches[0].pageY;
|
||||
|
@ -231,7 +231,7 @@ For usage and examples: colpick.com/plugin
|
|||
return false;
|
||||
},
|
||||
moveSelector = function (ev) {
|
||||
var payeX,pageY;
|
||||
var pageX,pageY;
|
||||
if (ev.type == 'touchmove') {
|
||||
pageX = ev.originalEvent.changedTouches[0].pageX,
|
||||
pageY = ev.originalEvent.changedTouches[0].pageY;
|
||||
|
@ -388,7 +388,7 @@ For usage and examples: colpick.com/plugin
|
|||
// Store parts of the plugin
|
||||
options.el = this;
|
||||
options.hue = cal.find('div.colpick_hue_arrs');
|
||||
huebar = options.hue.parent();
|
||||
var huebar = options.hue.parent();
|
||||
// Paint the hue bar
|
||||
var UA = navigator.userAgent.toLowerCase();
|
||||
var isIE = navigator.appName === 'Microsoft Internet Explorer';
|
||||
|
@ -408,7 +408,7 @@ For usage and examples: colpick.com/plugin
|
|||
huebar.append(div);
|
||||
}
|
||||
} else {
|
||||
stopList = stops.join(',');
|
||||
var stopList = stops.join(',');
|
||||
huebar.attr('style', 'background:-webkit-linear-gradient(top,' + stopList +
|
||||
'); background: -o-linear-gradient(top,' + stopList +
|
||||
'); background: -ms-linear-gradient(top,' + stopList +
|
||||
|
|
Loading…
Reference in a new issue