Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var Ti = require("titanium");
var doStartActivityForResult = Ti.Activity.prototype.startActivityForResult;
Ti.Activity.prototype.startActivityForResult = function(intent, callback) {
this.on("result", callback);
this.on("error", callback);
doStartActivityForResult.call(this, intent);
}
var Ti = require("titanium");
var doStartActivityForResult = Ti.Activity.prototype.startActivityForResult;
Ti.Activity.prototype.startActivityForResult = function(intent, callback) {
this.on("result", callback);
this.on("error", callback);
doStartActivityForResult.call(this, intent);
}