The _fillRecordsCache function uses the layer property passed in as an option to determine whether it should fill the records cache using a layer. If the layer was not specified at the time of creation and instead specified dynamically via setLayer, this does not work because the layer property in options is not updated by setLayer.
The
_fillRecordsCache
function uses the layer property passed in as an option to determine whether it should fill the records cache using a layer. If the layer was not specified at the time of creation and instead specified dynamically viasetLayer
, this does not work because the layer property in options is not updated bysetLayer
.