Ticket #182 (closed defect: fixed)
Wrong call to prototyped function _lc in applyCSSRule of DynamicCSS
| Reported by: | Michael Hosse <michael.hosse@…> | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Xinha Core | Version: | |
| Severity: | major | Keywords: | |
| Cc: |
Description
When applyCSSRule is called, it is called as a static method. In this case it is not possible to call this._lc, because it does not exist. No error is thrown because applyCSSRule is called in a try...catch block with an empty catch. The result is a mostly empty StyleList?.
As a workaround i replaced the calls to this._lc("Default") by HTMLArea._lc("Default", 'DynamicCSS').
But IMO this is only a quickfix. Maybe _lc should be a static method too.
Change History
Note: See
TracTickets for help on using
tickets.
