Stupid question:
When a http request is finished, how do I call back to a prototype method in the script?
var self = this;
pc.http.get("http://domain.com/scriptlink", function (err, response) {
**self**.MyMethod();
});
Stupid question:
When a http request is finished, how do I call back to a prototype method in the script?
var self = this;
pc.http.get("http://domain.com/scriptlink", function (err, response) {
**self**.MyMethod();
});
Got it – Thanks! I updated the code, above to reflect it.