LzDatapath.lzs:
if ( chgpkg.who.childOfNode( this.p , true ) &&
this.onDocumentChange.ready){
- this.onDocumentChange.sendEvent( chgpkg );
+ if (this.onDocumentChange.ready)
this.onDocumentChange.sendEvent( chgpkg );
"this.onDocumentChange.ready" is checked twice.
On 4/17/2010 2:35 AM, Max Carlson wrote:
Change 20100416-maxcarlson-R by [email protected] on 2010-04-16 16:34:20 PDT
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Eliminate warnings in the component sampler
Bugs Fixed: LPP-8920 - Ensure all LFC calls to sendEvent() check the ready flag
first
Technical Reviewer: ptw
QA Reviewer: hminsky
Details: Ensure all LFC calls to sendEvent() check the ready flag
first.
LaszloView, LzText, LzInputText - Return early from constructors when the node
has been deleted, which can happen due to replication or placement.
Tests: examples/components/component_sampler.lzx?debug=true no longer warns
about invalid delegates.
Files:
M WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as
M WEB-INF/lps/lfc/services/LzGlobalMouse.lzs
M WEB-INF/lps/lfc/services/LzFocus.lzs
M WEB-INF/lps/lfc/views/LzInputText.lzs
M WEB-INF/lps/lfc/views/LzText.lzs
M WEB-INF/lps/lfc/views/LaszloView.lzs
M WEB-INF/lps/lfc/views/LaszloCanvas.lzs
M WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs
M WEB-INF/lps/lfc/data/LzDatapath.lzs
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20100416-maxcarlson-R.tar