mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
A constant we can use to detect if the new dialect engine is present
This commit is contained in:
parent
cda58511ac
commit
6dc4a3f2d6
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue