[Laszlo-dev] [Laszlo-checkins] r9466 - in, openlaszlo/trunk/WEB-INF/lps/lfc: kernel/dhtml views

P T Withington ptw at pobox.com
Thu Jun 5 10:17:28 PDT 2008


Gak!  I _hate_ replication!  What a can of worms.

On 2008-06-05, at 12:28 EDT, André Bargull wrote:

> One possibility comes from your best friend, the replication- 
> manager!  :-)
>
> From "LzReplicationManager#construct(..)":
>> // Because we're about to start making siblings to this view, (i.e.  
>> out
>> // of lexical order) make sure that the replicated view has been  
>> added
>> // to the parent's subview list. Also, it's ok to call this if view  
>> was
>> // already added
>> view.immediateparent.addSubview ( view );
>
>
>> Is this an indication of a larger problem?  How is it that a view  
>> is  getting added more than once?
>>
>> On 2008-06-05, at 02:25 EDT, max at openlaszlo.org wrote:
>>
>>
>>> > Author: max
>>> > Date: 2008-06-04 23:25:12 -0700 (Wed, 04 Jun 2008)
>>> > New Revision: 9466
>>> >
>>> > Modified:
>>> >   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
>>> >   openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs
>>> > Log:
>>> > Change 20080604-maxcarlson-x by maxcarlson at Roboto on 2008-06-04   
>>> > 21:11:58 PDT
>>> >    in /Users/maxcarlson/openlaszlo/trunk-clean
>>> >    for http://svn.openlaszlo.org/openlaszlo/trunk
>>> >
>>> > Summary: Prevent a sprite from being added to more than one parent
>>> >
>>> > Bugs Fixed: LPP-5228 - LzView#addSubview: sprite can be added  
>>> to  > several parent-sprites (DHTML)
>>> >
>>> > Technical Reviewer: a.bargull at intensis.de
>>> > QA Reviewer: hminsky
>>> > Doc Reviewer: (pending)
>>> >
>>> > Details: LzSprite.js - Test _parent to prevent a sprite from  
>>> being  > added to a parent twice.
>>> >
>>> > LaszloView.lzs - Move addedToParent test to top of method to  
>>> prevent  > possible duplicate calls to sprites.
>>> >
>>> > Tests: ant lztest, smoketest
>>> >
>




More information about the Laszlo-dev mailing list