Simplify addCap() function.

This commit is contained in:
Jürg Lehni 2013-12-07 16:11:02 +01:00
parent eb1f62b908
commit f166b08257

View file

@ -2609,14 +2609,10 @@ statics: {
}
function addCap(segment, cap) {
switch (cap) {
case 'round':
if (cap === 'round') {
addJoin(segment, cap);
break;
case 'butt':
case 'square':
} else {
Path._addSquareCap(segment, cap, radius, add);
break;
}
}