3 ms·
Sample code from just this afternoon: const typeMap = { 'i-text': this.processText.bind(this), 'image': this.processImage.bind(this),
by savanaly 11y ago
Sample code from just this afternoon:
const typeMap = {
'i-text': this.processText.bind(this),
'image': this.processImage.bind(this),
'rect': this.processRectangle.bind(this)
};
Really annoying if you ask me, though I understand why it had to be this way.