A constant we can use to detect if the new dialect engine is present
This commit is contained in:
parent
cda58511ac
commit
6dc4a3f2d6
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue