I have the following line in my code:
document.all['grid_tipo_prestador_' + ind_operadora].object = new _gridlist(document.all['grid_tipo_prestador_' + ind_operadora]);
I confess, I have no idea where _gridlist
comes from. See that I have a new _gridlist(...)
, now this _gridlist
in this file only appears in this line and in the other files, both the caller and the helper does not exist this face. How can I give a new one this way? When we use C #, we give a new in an existing class, now in Javascript I do not know what happens here. As Javascript is very dynamic and its object orientation is somewhat different from C #, it suddenly allows you to create a type dynamically, other than C # that I need to instantiate an already existing class. I would like to understand that.