I am going over someone else's code and trying to understand what they have done. There are terms in there that I have no idea what they are.. Prototype, subscribe?? Can someone help me in understanding what this function is doing?
Thanks
myspace.prototype.attached = function () {
var that = this;
this.appViewModel.dataLoaded.subscribe(function (val) {
window.setTimeout(function() {
that.showUI(val);
}, 300);
}, this);
};