discourse/app/assets/javascripts/deprecated.js

26 lines
601 B
JavaScript
Raw Normal View History

2016-07-03 13:33:05 -04:00
(function() {
var Discourse = require('discourse').default;
Discourse.Markdown = {
whiteListTag: Ember.K,
whiteListIframe: Ember.K
};
Discourse.Dialect = {
inlineRegexp: Ember.K,
addPreProcessor: Ember.K,
replaceBlock: Ember.K,
inlineReplace: Ember.K,
registerInline: Ember.K,
registerEmoji: Ember.K
};
Discourse.ajax = function() {
var ajax = require('discourse/lib/ajax').ajax;
Ember.warn("Discourse.ajax is deprecated. Import the module and use it instead");
return ajax.apply(this, arguments);
};
window.Discourse = Discourse;
})();