Skip to content

Instantly share code, notes, and snippets.

@mrtnbroder
Last active December 20, 2015 19:29
Show Gist options
  • Save mrtnbroder/6183473 to your computer and use it in GitHub Desktop.
Save mrtnbroder/6183473 to your computer and use it in GitHub Desktop.
why?
// this happens when the view get's removed
if ($.MapWrapper != null) { // Alloy <View id="Wrapper">, wraps the map
$.MapWrapper.remove($.MapView); // the map <View ns="ns="Ti.Map" id="MapView">
$.MapWrapper = $.MapView = null;
$.destroy();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment