Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Memory Management

wGEric edited this page Oct 5, 2011 · 1 revision

TiQuery provides a way to quickly and easily release views from memory within a context.

// create a wrapper view and remove it from the window
var view = $.View();
window.add(view);

// add more to the view

// release the view from memory
$.release(view);

// create the view again and start over
view = $.View({
    width: "100%",
    height: "100%"
});

win.add(view);

Behind the scenes TiQuery creates a dummy window and dumps the view into it. It then closes that window releasing the memory. For more information see: http://developer.appcelerator.com/question/116867/this-is-a-solution-to-your-memory-woes

Clone this wiki locally