jquery/jquery-mobile — Issue #3494: Error after remove items from the DOM and try to do a transition
Author: alejandrotoro
Created: 2012-01-26 17:19:32+00:00
State: open

The error I'm experiencing is:

TypeError: 'undefined' is not an object (evaluating 'd.data("page")._trigger')
jquery-mobile-min.js:45

its showed after remove elements from the DOM

for item in items
$("#element-#{item.id}").remove()
$("##{item.id}").remove()
$.mobile.changePage "#page", {transition: "slide"}

the items var is an array I feed after instantiate the element, so, I'm sure that the element its trying to remove exists in the DOM

If exists the way to remove elements from the DOM using a jQueryMobile function that, obviously, I don't know, please let me know.

Thanks!