Expected `class Layer extends L.Class` to work the same as `Layer = L.Class.extend({})` but the former was not initializing correctly