Author: hqm
Date: 2007-09-08 17:52:42 -0700 (Sat, 08 Sep 2007)
New Revision: 6414

Modified:
   
openlaszlo/branches/wafflecone/lps/components/utils/replicator/lazyreplicator.lzx
Log:
Change 20070908-hqm-0 by [EMAIL PROTECTED] on 2007-09-08 20:50:37 EDT
    in /cygdrive/c/users/hqm/openlaszlo/wafflecone3/lps/components/utils
    for 
http://svn.openlaszlo.org/openlaszlo/branches/wafflecone/lps/components/utils

Summary:  remove warning in lazyreplicator

New Features:

Bugs Fixed:

Technical Reviewer: hqm (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    
should have used "'foo' in bar" to check for undefined property


Tests:



Modified: 
openlaszlo/branches/wafflecone/lps/components/utils/replicator/lazyreplicator.lzx
===================================================================
--- 
openlaszlo/branches/wafflecone/lps/components/utils/replicator/lazyreplicator.lzx
   2007-09-09 00:22:45 UTC (rev 6413)
+++ 
openlaszlo/branches/wafflecone/lps/components/utils/replicator/lazyreplicator.lzx
   2007-09-09 00:52:42 UTC (rev 6414)
@@ -197,14 +197,14 @@
         // by the parent layout during construction, which we don't
         // want to happen.
         var attrs;
-        if (this.replicated.attrs) {
+        if ('attrs' in this.replicated) {
              attrs = this.replicated.attrs;
         } else {
             attrs = {};
             this.replicated.attrs = attrs;
         }
 
-        if (attrs.options) {
+        if ('options' in attrs) {
             attrs.options.ignorelayout = true;
         } else {
             attrs.options = {ignorelayout: true};


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to