Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Errors when trying to delete DOM elements #1492
I have some elements I am adding and deleting and I occasionally get this error. The library I am using is not my own and can be found http://code.google.com/p/django-dynamic-formset/ .
Uncaught TypeError: Cannot set property 'vmouseover' of undefined
I have found a fix for this but since I know nearly nothing about jquery mobile's inner workings it may break things more. Here is the fix.
If someone who understands the code a bit more can assure me that this doesn't break anything in the long run i will request for a pull.
We could certainly check an undefined bindings data value. I just want to confirm with some folks in the know if stripping of element data before teardown is called, is expected behavior. It seems like stripping of data should happen AFTER just in case the special event needed something in the data to aid with cleanup.