[Laszlo-dev] For Review: Change 20070807-maxcarlson-F Summary: Turn off history persistence by default

Max Carlson max at openlaszlo.org
Tue Aug 7 14:45:19 PDT 2007


Change 20070807-maxcarlson-F by maxcarlson at plastik on 2007-08-07  
14:38:37 PDT
     in /Users/maxcarlson/openlaszlo/wafflecone
     for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: Turn off history persistence by default

New Features:

Bugs Fixed: LPP-4442 - history mechanism seems to take effect on startup

Technical Reviewer: promanik
QA Reviewer: ben
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: history.lzx - Change example to use new setPersist(true) API  
(so persistence still works in swf)

LzHistory.as - Turn persistence off by default.  Rename setHistory to  
__setHistory.  Add more safety checking and warnings to save() method  
(using 3.4-style code would have hanged the browser before).  Clean  
up existing persistent object, if any in __initPersist().  Add  
setPersist() API to turn persistence on/off.

LzHistory.js - Add setPersist() API with warning for DHTML (not yet  
implemented).

embednew.js -  Make sure initial history event is sent even if the  
hash is empty.


Tests: silver/main.lzx?lzr=swf8 now has correct back-button  
behavior.  http://localhost:8080/wafflecone/test/history/ works as  
before - with persistence across page reloads in swf via setPersist 
(true)

Files:
M      test/history/history.lzx
M      WEB-INF/lps/lfc/services/platform/swf/LzHistory.as
M      WEB-INF/lps/lfc/services/platform/dhtml/LzHistory.js
M      lps/includes/source/embednew.js

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070807- 
maxcarlson-F.tar


More information about the Laszlo-dev mailing list