mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:20:57 -06:00
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
Block a user