[Laszlo-dev] For your review: Fix doc bugs
Max Carlson
max at laszlosystems.com
Sun Mar 12 22:31:56 EST 2006
Change 40493 by mcarlson at max-thinkpad on 2006/03/12 19:29:58 *pending*
Summary: Fix doc bugs
New Features:
Bugs Fixed:
Technical Reviewer: Jim
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Tests:
Affected files ...
... //depot/lps-dev/WEB-INF/lps/lfc/views/LzDrawView.as#18 edit
Differences ...
==== //depot/lps-dev/WEB-INF/lps/lfc/views/LzDrawView.as#18 -
c:\Laszlo\lps-dev\
WEB-INF\lps\lfc\views\LzDrawView.as ====
494a495,519
>
//----------------------------------------------------------------------------
-
> // Convert a css color string to an integer. This recognizes only
> // '#rgb', '#rrggbb', and the color names that have been defined in
> // the global namespace ('red', 'green', 'blue', etc.)
> //
> // @param value: Color value to convert
>
//----------------------------------------------------------------------------
-
> LzDrawView.prototype.cssColorToLong = function(value) {
> if (typeof value != 'string') return value;
> if (value.charAt(0) == '#') {
> var n = parseInt(value.slice(1), 16);
> switch (!isNaN(n) && value.length-1) {
> case 3:
> return ((n & 0xf00) << 8 | (n & 0xf0) << 4 | (n & 0xf)) * 17;
> case 6:
> return n;
> default:
> _root.Debug.warn('invalid color: ' + value);
> }
> }
> if (typeof eval(value) == 'number')
> return eval(value);
> _root.Debug.warn('unknown color format: ' + value);
> return 0;
> }
495a521,522
>
>
537,558d563
<
< // Convert a css color string to an integer. This recognizes only
< // '#rgb', '#rrggbb', and the color names that have been defined in
< // the global namespace ('red', 'green', 'blue', etc.)
< LzDrawView.prototype.cssColorToLong = function(value) {
< if (typeof value != 'string') return value;
< if (value.charAt(0) == '#') {
< var n = parseInt(value.slice(1), 16);
< switch (!isNaN(n) && value.length-1) {
< case 3:
< return ((n & 0xf00) << 8 | (n & 0xf0) << 4 | (n & 0xf)) * 17;
< case 6:
< return n;
< default:
< Debug.warn('invalid color: ' + value);
< }
< }
< if (typeof eval(value) == 'number')
< return eval(value);
< _root.Debug.warn('unknown color format: ' + value);
< return 0;
< }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: changeset-40493.zip
Type: application/x-zip-compressed
Size: 14821 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20060312/69a77f1a/changeset-40493.bin
More information about the Laszlo-dev
mailing list