Author: max
Date: 2007-08-20 13:12:42 -0700 (Mon, 20 Aug 2007)
New Revision: 6158

Modified:
   openlaszlo/branches/wafflecone/lps/components/base/basecomponent.lzx
Log:
Change 20070820-maxcarlson-g by [EMAIL PROTECTED] on 2007-08-20 12:47:48 PDT
    in /Users/maxcarlson/openlaszlo/wafflecone
    for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: Eliminate warnings in basecomponent.lzx

New Features:

Bugs Fixed: LPP-4200 - Missing warnings in "LzBrowser.js"

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

Documentation:

Release Notes:

Details: Only set tint if 'view.capabilities.colortransform' is true.
    

Tests: Any component test in DHTML will have far fewer warnings in debug mode.



Modified: openlaszlo/branches/wafflecone/lps/components/base/basecomponent.lzx
===================================================================
--- openlaszlo/branches/wafflecone/lps/components/base/basecomponent.lzx        
2007-08-20 19:51:06 UTC (rev 6157)
+++ openlaszlo/branches/wafflecone/lps/components/base/basecomponent.lzx        
2007-08-20 20:12:42 UTC (rev 6158)
@@ -300,6 +300,7 @@
                    will lighten or darken everything that is colorized -->
         <method name="setTint" args="v, color, brightness">
             <![CDATA[
+            if (v.capabilities.colortransform) {
             if (color != "" && color != null){
                 if (brightness == null) { brightness = 0; }
                 var rgb = color;
@@ -316,8 +317,9 @@
                 blue = blue/255*100;
 
                 v.setColorTransform( { ra : red, ga : green, ba : blue,
-                                    rb : brightness, gb : brightness, 
-                                    bb : brightness } );
+                                rb : brightness, gb : brightness, 
+                                bb : brightness } );
+                }
             }
             ]]>
         </method>


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

Reply via email to