jquery/jquery-mobile — pull request #3536 by gabrielschulhof (2012-02-03 22:29:56+00:00)
Title: [popup] Restrict scope for a given button's popup to the page under enha...

...ncement

When linking buttons to popups, the selector used for finding the buttons that are supposed to get linked needs to be restricted to the page currently under enhancement, because otherwise it will find such buttons on other pages as well. The problem is that since those pages have never been enhanced, popup widgets on those pages will not yet have been created, causing .popup("option", ...) calls to as-yet uninitialized popup widgets.