Is it possible to combine this whole definition into one declaration instead of breaking it apart?
First Part
var Pan = function(){};
Second Part
Pan.prototype = {
//private variables
Id: null,
//public methods
GetId: function(){
alert(Id);
}
}
You can always do: