I am trying to access a member variable of a class, which is an array in a member function of a class, but gets an error:
Unable to read property 'length' from undefined
Grade:
function BasicArgs(){ var argDataType = new Uint8Array(1); var argData = new Uint32Array(1); }
Member function:
BasicArgs.prototype.getByteStreamLength = function(){ alert(this.argData.length); return i; }
This is one example, but I have come across this in many places. integer variables are easily accessible, but in most cases the problem is with arrays. Help will be appreciated.
source share