@titanium/turbo
Version:
🚀 Axway Amplify tool to use Turbo for turbo charging your Appcelerator Titanium SDK Framework!
40 lines (37 loc) • 1.2 kB
JavaScript
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
require("/alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
this.__controllerPath = "index";
this.args = arguments[0] || {};
if (arguments[0]) {
__processArg(arguments[0], "__parentSymbol");
__processArg(arguments[0], "$model");
__processArg(arguments[0], "__itemTemplate");
}
var $ = this;
var exports = {};
$.__views.master = Alloy.createController("master", {
id: "master"
});
$.__views.master && $.addTopLevelView($.__views.master);
exports.destroy = function() {};
_.extend($, $.__views);
$.master.on("detail", function(e) {
var controller = Alloy.createController("detail");
var win = controller.getView();
controller.setBoxerStats(e.row.fighterName);
win.open();
});
$.master.getView().open();
require("specs/index")($);
_.extend($, exports);
}
var Alloy = require("/alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
module.exports = Controller;