Skip to content

Commit

Permalink
Fixed an issue related to the JS compile (the fields of the configura…
Browse files Browse the repository at this point in the history
…tion object need to be accessed using the square brackets syntax + string because the object is not known at compile time and the jscompiler will obfuscate the name of the fields).
  • Loading branch information
jeremiele committed Jun 11, 2010
1 parent 5afebc3 commit 7cbd56f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ascender/ascender_script.js
Expand Up @@ -31,11 +31,11 @@ webfont.AscenderScript.prototype.supportUserAgent = function(userAgent, support)
};

webfont.AscenderScript.prototype.load = function(onReady) {
var key = this.configuration_.key;
var key = this.configuration_['key'];
var protocol = (('https:' == document.location.protocol) ? 'https:' : 'http:');
var url = protocol + '//webfonts.fontslive.com/css/' + key + '.css';
this.domHelper_.insertInto('head', this.domHelper_.createCssLink(url));
var fv = this.parseFamiliesAndVariations(this.configuration_.families);
var fv = this.parseFamiliesAndVariations(this.configuration_['families']);
onReady(fv.families, fv.variations);
};

Expand Down
3 changes: 3 additions & 0 deletions src/modules.yml
Expand Up @@ -12,6 +12,9 @@ core:
- core/fontvariationdescription.js
- core/initialize.js

ascender:
- ascender/ascender_script.js

google:
- google/fontapiurlbuilder.js
- google/fontapiparser.js
Expand Down

0 comments on commit 7cbd56f

Please sign in to comment.