FIX: Make getURL available to plugins while they are starting up in a similar load order

to the client app.
This commit is contained in:
Robin Ward
2013-08-29 13:11:12 -04:00
parent 425b59d381
commit eb5830f3b0
3 changed files with 20 additions and 13 deletions
@@ -24,9 +24,11 @@
":$" : 'blush'
};
Discourse.Dialect.on('register', function() {
Object.keys(translations).forEach(function (code) {
Discourse.Dialect.inlineReplace(code, imageFor(translations[code]));
Object.keys(translations).forEach(function (code) {
var replacement = translations[code];
Discourse.Dialect.inlineReplace(code, function (code) {
return imageFor(replacement);
});
});