How about:

```js
pointCache[pointType] = document.getElementsByClassName(
  pointType === 0 ? 'leaflet-marker-icon' : 'point-type-' + pointType
)
```