Ticket #200 (new enhancement)

Opened 3 years ago

Last modified 3 years ago

Make a nice JavaScript style file and an appropriate loader

Reported by: obaltzer Assigned to: somebody
Priority: normal Milestone: 0.8.0
Component: CSS/JavaScript Version:
Severity: normal Keywords:
Cc:

Description

Currently the style.js file has a lot of logic for browser detection in it. This logic should be separated into a different file, e.g. tigerevents.js and the style file should really just contain the rules. If the loader determines that the browser does not support certain required features it will just not register the styles and thus not apply any effects to the HTML elements. Additionally, the style registry hash can be extended to include conditions for applying the style to the element. Those conditions can then include simplified browser tests to apply some effect only to those browsers that support then. E.g.:

style = {
  '#headlines_list li': {
    requires: browser.isGecko && !browser.isKonqueror,
    apply: function(e) {
      new FadeItems(e);
    }
  }
}

Or similar.

Change History

06/09/05 03:56:00 PM changed by obaltzer

  • milestone changed from WishList to 1.10.