I'm working on an app with some particularly heavy views that I'd like to remove from the DOM if iOS reports a memory warning. What is the preferred method for this? For testing I tried adding:
where 'hide' is my view's callback for when the view is hidden. It's removed from the DOM but when I try to load it again, I get a js error from the kendo.js file:
Line 9: TypeError: 'undefined' is not an object (evaluating 'this.element.closest');
Am I missing something?
Thanks!
                                hide:function(e) {  e.view.destroy();  e.view.element.remove();},Line 9: TypeError: 'undefined' is not an object (evaluating 'this.element.closest');
Am I missing something?
Thanks!