[Laszlo-dev] For Review: [UPDATED] Change 20070803-ben-e Summary: Issue a runtime warning if the result of a $style lookup is null or undefined

Benjamin Shine ben at laszlosystems.com
Fri Aug 3 14:00:15 PDT 2007


[UPDATED]

Change 20070803-ben-e by ben at slim.local on 2007-08-03 12:56:12 PDT
     in /Users/ben/src/svn/openlaszlo/branches/wafflecone
     for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: Issue a runtime warning if the result of a $style lookup is  
null or undefined

New Features:

Bugs Fixed: LPP-3024 If a css'd resource is not found, an error or  
warning should be issued

Technical Reviewer: max
QA Reviewer: frisco (pending)
Doc Reviewer: (pending)

Documentation:
If the developer creates a style constraint, and that constraint  
evaluates to
null, they've probably made an error. Therefore, in debug mode,
we give runtime warnings. For speed, we don't do this check when running
in non-debug mode.

Release Notes:

Details:


Tests:
http://localhost:8080/wafflecone/test/style/resource/main.lzx
We get this warning:
WARNING: got null for CSS property lookup for  nostyledefined
which is the warning requested by the bug reporter.
(Note that this test file sets itself to run in debug mode.)

Files:
M      test/style/resource/resource-not-found.lzx
M      WEB-INF/lps/lfc/services/LzCSSStyle.js

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070803-ben- 
e.tar


More information about the Laszlo-dev mailing list