From: JKingsnorth Date: Fri, 18 Mar 2016 09:07:56 +0000 (+0000) Subject: Make variable declaration less verbose X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=15036c7d857505d52a6a74aa92c6e9b8f1f2d17c;p=civicrm-core.git Make variable declaration less verbose --- diff --git a/js/wysiwyg/crm.ckeditor.js b/js/wysiwyg/crm.ckeditor.js index c50b5b53bb..c684a5140c 100644 --- a/js/wysiwyg/crm.ckeditor.js +++ b/js/wysiwyg/crm.ckeditor.js @@ -68,10 +68,7 @@ $(item).addClass('crm-wysiwyg-enabled'); - var isFullPage = false; - if ($(item).hasClass('crm-wysiwyg-fullpage')) { - isFullPage = true; - } + var isFullPage = $(item).hasClass('crm-wysiwyg-fullpage'); CKEDITOR.replace($(item)[0], { filebrowserBrowseUrl: browseUrl + '&type=files',