I have a prototype with 3 methods in it as below,
ej.Ej3DRender = function () {
};
ej.Ej3DRender.prototype = {
matrix3D: function (size) {
mData += 3;
},
getIdentity: function () {
mData+=4;
},
turn: function (angle) {
mData+=6;
}
}
Is it possible to share a variable common to all the methods in the prototype? In the above code i have to make use of the "mData" in all method, so where can i declare it? and it should be accessible only within this prototype.
Thanks In Advance