Sometimes we would like to know the highest active layer, which is available in the `highestLayer` private variable, and via `.top()` too. We do not want to make `highestLayer` public, because we want to be the only ones changing it. And while `top()` gets us roughly the same information, it does so at a cost. For a lot of purposes, the cached `highestLayer` would be perfectly adequate. The new `Layer.highest()` accessor does just this. Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>pull/179/head
parent
4dbc5d5707
commit
119d021e6a
Loading…
Reference in new issue