diff --git a/src/js/controller/settings/exportimage/MiscExportController.js b/src/js/controller/settings/exportimage/MiscExportController.js index 1c299a2..f639d51 100644 --- a/src/js/controller/settings/exportimage/MiscExportController.js +++ b/src/js/controller/settings/exportimage/MiscExportController.js @@ -10,12 +10,11 @@ pskl.utils.inherit(ns.MiscExportController, pskl.controller.settings.AbstractSettingController); ns.MiscExportController.prototype.init = function () { - - var downloadButton = document.querySelector('.c-download-button'); - this.addEventListener(downloadButton, 'click', this.onCDownloadButtonClick_); + var cDownloadButton = document.querySelector('.c-download-button'); + this.addEventListener(cDownloadButton, 'click', this.onDownloadCFileClick_); }; - ns.MiscExportController.prototype.onCDownloadButtonClick_ = function (evt) { + ns.MiscExportController.prototype.onDownloadCFileClick_ = function (evt) { var fileName = this.getPiskelName_() + '.c'; var cName = this.getPiskelName_().replace(' ','_'); var width = this.piskelController.getWidth(); diff --git a/src/js/utils/UserSettings.js b/src/js/utils/UserSettings.js index 8021d4d..b05c495 100644 --- a/src/js/utils/UserSettings.js +++ b/src/js/utils/UserSettings.js @@ -12,7 +12,6 @@ ONION_SKIN : 'ONION_SKIN', LAYER_PREVIEW : 'LAYER_PREVIEW', LAYER_OPACITY : 'LAYER_OPACITY', - EXPORT_PNG_BEST_FIT: 'EXPORT_PNG_BEST_FIT', EXPORT_PNG_POWER_TWO: 'EXPORT_PNG_POWER_TWO', EXPORT_SCALE: 'EXPORT_SCALE', EXPORT_TAB: 'EXPORT_TAB', @@ -32,7 +31,6 @@ 'ONION_SKIN' : false, 'LAYER_OPACITY' : 0.2, 'LAYER_PREVIEW' : true, - 'EXPORT_PNG_BEST_FIT' : false, 'EXPORT_PNG_POWER_TWO' : false, 'EXPORT_SCALE' : 1, 'EXPORT_TAB' : 'gif',