Opened 12 years ago

Closed 12 years ago

#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 (2)

comment:1 Changed 12 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

comment:2 Changed 12 years ago by niko

  • Resolution set to fixed
  • Status changed from new to closed

fixed in changeset:88
thanks :D

Note: See TracTickets for help on using tickets.