Ticket #182 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

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

Changed 8 years ago by Michael Hosse <michael.hosse@…>

  • summary changed from Wrong call to prototyped function _lc in applyCSSRule to Wrong call to prototyped function _lc in applyCSSRule of DynamicCSS

Changed 8 years ago by niko

  • status changed from new to closed
  • resolution set to fixed

fixed in changeset:88 thanks :D

Note: See TracTickets for help on using tickets.