Update dist/all.js

This change seems to work well for polygons.