Fix the build :fired:

This commit is contained in:
Arpit Jalan 2016-06-27 01:11:56 +05:30
parent 83309752ae
commit 1b80f1ea39

View File

@ -522,11 +522,11 @@ export default Ember.Component.extend({
formatCode() {
const sel = this._getSelected();
if (sel.value.indexOf("\n") !== -1) {
return (this.siteSettings.code_formatting_style == "4-spaces-indent") ?
return (this.siteSettings.code_formatting_style === "4-spaces-indent") ?
this._applySurround(sel, ' ', '', 'code_text') :
this._addText(sel, '```\n' + sel.value + '\n```');
} else {
return (this.siteSettings.code_formatting_style == "4-spaces-indent") ?
return (this.siteSettings.code_formatting_style === "4-spaces-indent") ?
this._applySurround(sel, '`', '`', 'code_text') :
this._applySurround(sel, '```\n', '\n```', 'paste_code_text');
}