Skip to content
Advertisement

push array in class is undefined

this is summary of my code. Frame is defined as

JavaScript

record.ts

JavaScript

on save method, _text must be Frame Thing

But on the console, it’s undefined. what’s wrong with it?

Full code on my gist record.ts buffer.ts

Advertisement

Answer

try:

this.save = this.save.bind(this) in your constructor.

greetings

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement