Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.0 Final
-
Fix Version/s: EE 1.0
-
Component/s: None
-
Labels:None
-
Environment:ICEmobile
Description
Inline JavaScript must be written once if any dependent components are on the page.
If the presence of the component is not detected correctly, the inline JavaScript may be written more than once or not written at all. In the case of mobileshowcase, the following sequence causes the inline script for the button to not be written:
1. Load menu page (GET)
2. Select Buttons demo (AJAX)
3. Press Menu button (AJAX)
4. Change theme (POST)
5. Select Buttons demo (AJAX)
Buttons will not work at this point. The problem is that 2. marked the button JavaScript as rendered in the ViewMap, but 4. preserved the ViewMap while clearing the JavaScript memory in the browser. The current state-machine implementation did not take full-page POST into account, only GET and AJAX requests.