Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
id: "__alloyId0"
});
$.__views.index.add($.__views.__alloyId0);
$.__views.__alloyId2 = Ti.UI.createLabel({
text: "Hello",
id: "__alloyId2"
});
$.__views.__alloyId0.add($.__views.__alloyId2);
exports.destroy = function() {};
_.extend($, $.__views);
$.index.open();
__defers["$.__views.__alloyId1!refreshstart!doRefresh"] && $.addListener($.__views.__alloyId1, "refreshstart", doRefresh);
_.extend($, exports);
}
var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
module.exports = Controller;
backgroundColor: "green",
height: 100,
width: 250
});
$.__views.__alloyId1 = Ti.UI.createLabel({
text: "Popover with a View",
id: "__alloyId1"
});
$.__views.popView.add($.__views.__alloyId1);
$.__views.popover.contentView = $.__views.popView;
exports.destroy = function() {};
_.extend($, $.__views);
_.extend($, exports);
}
var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
module.exports = Controller;
width: 180,
title: "Test Patience",
id: "testButton"
});
$.__views.index.add($.__views.testButton);
testPatience ? $.__views.testButton.addEventListener("click", testPatience) : __defers["$.__views.testButton!click!testPatience"] = true;
exports.destroy = function() {};
_.extend($, $.__views);
$.index.open();
require("specs/index")($);
__defers["$.__views.slider!change!updateLabel"] && $.__views.slider.addEventListener("change", updateLabel);
__defers["$.__views.testButton!click!testPatience"] && $.__views.testButton.addEventListener("click", testPatience);
_.extend($, exports);
}
var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
module.exports = Controller;
$.__views.__alloyId1 = Ti.UI.createButton({
top: 200,
width: 200,
height: 50,
title: "CLOSE WINDOW",
id: "__alloyId1"
});
$.__views.landingPageWindow.add($.__views.__alloyId1);
closeWindow ? $.addListener($.__views.__alloyId1, "click", closeWindow) : __defers["$.__views.__alloyId1!click!closeWindow"] = true;
exports.destroy = function() {};
_.extend($, $.__views);
__defers["$.__views.__alloyId1!click!closeWindow"] && $.addListener($.__views.__alloyId1, "click", closeWindow);
_.extend($, exports);
}
var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
module.exports = Controller;
title: "Required",
id: "__alloyId14"
}
};
__alloyId13.push($.__views.__alloyId14);
$.__views.section = Ti.UI.createListSection({
id: "section"
});
$.__views.section.items = __alloyId13;
$.__views.section && $.addTopLevelView($.__views.section);
exports.destroy = function() {};
_.extend($, $.__views);
_.extend($, exports);
}
var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
module.exports = Controller;
$.b.addEventListener("click", function() {
$.t.text = "You clicked B";
});
$.c.addEventListener("click", function() {
$.t.text = "You clicked C";
});
exports.setText = function(text) {
$.t.text = text;
};
exports.getText = function() {
return $.t.text;
};
_.extend($, exports);
}
var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
module.exports = Controller;
backgroundColor: "#fff",
id: "index"
});
$.__views.index && $.addTopLevelView($.__views.index);
$.__views.__alloyId0 = Ti.UI.createWebView({
url: "/index.html",
id: "__alloyId0"
});
$.__views.index.add($.__views.__alloyId0);
exports.destroy = function() {};
_.extend($, $.__views);
$.index.open();
_.extend($, exports);
}
var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
module.exports = Controller;
height: Ti.UI.SIZE,
color: "black",
font: {
fontSize: "15dp"
},
text: "Sample is meant for Android only",
id: "__alloyId0"
});
$.__views.index.add($.__views.__alloyId0);
exports.destroy = function() {};
_.extend($, $.__views);
$.index.open();
_.extend($, exports);
}
var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
module.exports = Controller;
!function() {
"use strict";
$.refreshButton = Ti.UI.Windows.createAppBarButton({
icon: Ti.UI.Windows.SystemIcon.REFRESH
});
$.refreshButton.addEventListener("click", function() {
refresh();
});
$.commandBar.items = [ $.refreshButton ];
refresh();
}(arguments[0] || {});
__defers["$.__views.__alloyId2!itemclick!select"] && $.addListener($.__views.__alloyId2, "itemclick", select);
_.extend($, exports);
}
var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
module.exports = Controller;
}
};
});
};
$.index.open();
addData();
$.listView.setMarker({
sectionIndex: 0,
itemIndex: 15
});
__defers["$.__views.listView!itemclick!onItemClick"] && $.__views.listView.addEventListener("itemclick", onItemClick);
__defers["$.__views.listView!marker!onMarkerEvent"] && $.__views.listView.addEventListener("marker", onMarkerEvent);
_.extend($, exports);
}
var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
module.exports = Controller;