UNPKG

@titanium/turbo

Version:

🚀 Turbo is the awesome framework for turbo charging your Titanium cross-platform native mobile app development!

43 lines (40 loc) • 1.15 kB
function __processArg(obj, key) { var arg = null; if (obj) { arg = obj[key] || null; delete obj[key]; } return arg; } function Controller() { require("alloy/controllers/baseDialog").apply(this, Array.prototype.slice.call(arguments)); this.__controllerPath = "animatedDialog"; if (arguments[0]) { __processArg(arguments[0], "__parentSymbol"); __processArg(arguments[0], "$model"); __processArg(arguments[0], "__itemTemplate"); } var $ = this; var exports = {}; exports.destroy = function() {}; _.extend($, $.__views); exports.baseController = "baseDialog"; exports.openDialog = function(win) { $.refWin = win; $.cover.opacity = 0; $.dialog.opacity = 0; $.refWin.add($.cover); $.refWin.add($.dialog); $.cover.animate({ duration: 500, opacity: .5 }); $.dialog.animate({ duration: 500, opacity: 1 }); }; _.extend($, exports); } var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._; module.exports = Controller;