Simplify touches code slightly.
This commit is contained in:
Родитель
bdc7023776
Коммит
f1a2f62dcb
|
@ -3204,8 +3204,7 @@ function d3_svg_mousePoints(container, events) {
|
|||
};
|
||||
d3.svg.touches = function(container) {
|
||||
var touches = d3.event.touches;
|
||||
return touches && touches.length
|
||||
? d3_svg_mousePoints(container, d3_array(touches)) : [];
|
||||
return touches ? d3_svg_mousePoints(container, d3_array(touches)) : [];
|
||||
};
|
||||
d3.svg.symbol = function() {
|
||||
var type = d3_svg_symbolType,
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,5 +1,4 @@
|
|||
d3.svg.touches = function(container) {
|
||||
var touches = d3.event.touches;
|
||||
return touches && touches.length
|
||||
? d3_svg_mousePoints(container, d3_array(touches)) : [];
|
||||
return touches ? d3_svg_mousePoints(container, d3_array(touches)) : [];
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче