I am trying to access a member variable of a class which is an array in member function of a class but getting an error:
Can not read property
'length'of undefined
Class:
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 of the example but i have come across this at many places. variables like integer are easily accessible but most of the times problem is with arrays. Help would be appreciated.