FIX: Error loading up V8 due to Discourse not being present

This commit is contained in:
Robin Ward 2013-08-28 18:28:25 -04:00
parent 39a6c25ebb
commit 522c60c81a

View File

@ -24,8 +24,10 @@
":$" : 'blush'
};
Object.keys(translations).forEach(function (code) {
Discourse.Dialect.inlineReplace(code, imageFor(translations[code]));
Discourse.Dialect.on('register', function() {
Object.keys(translations).forEach(function (code) {
Discourse.Dialect.inlineReplace(code, imageFor(translations[code]));
});
});
Discourse.Dialect.inlineBetween({