This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Does this really help solve some memory leaks...? | |
*/ | |
Alloy.Globals.removeChildren = function(view) { | |
if (view) { | |
if (view.length) { | |
// it's an array of views (eg. the views of a scrollableView) | |
for (var i = 0; i < view.length; i++) { | |
Alloy.Globals.removeChildren(view[i]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Simple page indicator for scrollableViews for Appcelerator Titanium (Android). | |
* To be added after the views have been set. | |
* | |
* var p = require('page.indicator'); | |
* var options = { color: 'red' }; | |
* var indicator = p.pageIndicator(myScrollableView, options); | |
*/ | |