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
1 changed files with 2 additions and 0 deletions

View File

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