Please sign in to comment.
Page: Attach handlers using ._on(). Helps fix #2215
When a page widget is destroyed on an element, the pagebeforehide and pagebeforeshow handlers must be removed, otherwise, if another page widget is instantiated on the same element later on, the handlers from the previous instance will be left around and so the new instance will have the two events handled twice.
- Loading branch information...