Say I have the following code:
var album = new MyObject('album');
Assume that when the object is constructed, a bunch of properties relative to only albums are loaded via AJAX. Would it be possible to create an Album
class so that at a later point, I may just do this:
var anotherAlbum = new Album();
The Album
constructor would automatically set the properties that are unique to album objects, based on what was loaded when creating MyObject('album')