From c0392b837c9b3e178c5b4bbe5df45ce09e296843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 5 Mar 2013 15:09:46 -0800 Subject: [PATCH] Simplify PathIntersections example. --- examples/Paperjs.org/PathIntersections.html | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/examples/Paperjs.org/PathIntersections.html b/examples/Paperjs.org/PathIntersections.html index ae6e5c23..6de3ab5d 100644 --- a/examples/Paperjs.org/PathIntersections.html +++ b/examples/Paperjs.org/PathIntersections.html @@ -34,14 +34,12 @@ function showIntersections(path1, path2) { var intersections = path1.getIntersections(path2); - if (intersections.length) { - for (var j = 0; j < intersections.length; j++) { - new Path.Circle({ - center: intersections[j].point, - radius: 5, - fillColor: '#009dec' - }).removeOnMove(); - } + for (var i = 0; i < intersections.length; i++) { + new Path.Circle({ + center: intersections[i].point, + radius: 5, + fillColor: '#009dec' + }).removeOnMove(); } }