Move creation of FONTTEST to Config(), since it relies on document.body being available

This commit is contained in:
Davide P. Cervone 2011-01-20 08:19:10 -05:00
parent c1de343e4e
commit 0255e0c6bf
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -256,9 +256,10 @@
LEFTBUTTON: (HUB.Browser.isMSIE ? 1 : 0), // the event.button value for left button
MENUKEY: "altKey", // the event value for alternate context menu
Font: FONTTEST(),
Font: null, // created by Config() below
Config: function () {
this.Font = FONTTEST();
this.SUPER(arguments).Config.call(this); var settings = this.settings;
if (this.adjustAvailableFonts) {this.adjustAvailableFonts(this.config.availableFonts)}
if (settings.scale) {this.config.scale = settings.scale}