UNPKG

alloy

Version:

TiDev Titanium MVC Framework

49 lines (46 loc) 1.41 kB
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.index = Ti.UI.createWindow({ backgroundColor: "#fff", layout: "vertical", id: "index" }); $.__views.index && $.addTopLevelView($.__views.index); $.__views.top = Ti.UI.createView({ backgroundColor: "black", borderRadius: 2, borderColor: "blue", height: 100, id: "top" }); $.__views.index.add($.__views.top); $.__views.__alloyId0 = Alloy.createController("theRest", { id: "__alloyId0", __parentSymbol: $.__views.index }); $.__views.__alloyId0.setParent($.__views.index); exports.destroy = function() {}; _.extend($, $.__views); $.index.open(); require("specs/index")($); _.extend($, exports); } var Alloy = require("/alloy"), Backbone = Alloy.Backbone, _ = Alloy._; module.exports = Controller;