Please explain this construction on js (i.e., why you need it, when it is better to use, how to address its elements), as well as the meaning of the if-check (below):
if (!window.Upload) { var Upload = { init: function(obj, vars, options) { //... }, deinit: function(iUpload) { //... } }; }
UPD 1:
Also interested in the type of Upload
'a.