A constant we can use to detect if the new dialect engine is present

This commit is contained in:
Robin Ward 2016-07-06 12:46:07 -04:00
parent cda58511ac
commit 6dc4a3f2d6

View File

@ -15,6 +15,8 @@
deprecate('Dialect', ['inlineRegexp', 'inlineBetween', 'addPreProcessor', 'replaceBlock',
'inlineReplace', 'registerInline', 'registerEmoji']);
Discourse.dialect_deprecated = true;
Discourse.ajax = function() {
var ajax = require('discourse/lib/ajax').ajax;
Ember.warn("Discourse.ajax is deprecated. Import the module and use it instead");