-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpolyfill.js
More file actions
26 lines (20 loc) · 758 Bytes
/
polyfill.js
File metadata and controls
26 lines (20 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
exports.createCommandBar = function createCommandBar(params) {
var commandBar = Ti.UI.Windows.createCommandBar(params);
// Alloy expects the commandBar to have an add() function
commandBar.add = function (item) {
// FIXME: https://jira.appcelerator.org/browse/TIMOB-19111
var items = this.items;
this.items.push(item);
this.items = items;
};
return commandBar;
};
exports.createAppBarButton = function createAppBarButton(params) {
return Ti.UI.Windows.createAppBarButton(params);
};
exports.createAppBarToggleButton = function createAppBarToggleButton(params) {
return Ti.UI.Windows.createAppBarToggleButton(params);
};
exports.createAppBarSeparator = function createAppBarSeparator() {
return Ti.UI.Windows.createAppBarSeparator();
};