From 6cdc555a9343f265f1b6e1a376266bd065fb3cc1 Mon Sep 17 00:00:00 2001 From: Jesse Grosjean Date: Mon, 8 Jun 2015 20:40:15 -0400 Subject: [PATCH] Clone options parameter before modifying it. --- src/atom.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/atom.coffee b/src/atom.coffee index 8903a9cef..ddc2e024d 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -786,6 +786,8 @@ class Atom extends Model showSaveDialogSync: (options={}) -> if _.isString(options) options = defaultPath: options + else + options = _.clone(options) currentWindow = @getCurrentWindow() dialog = remote.require('dialog') options.title ?= 'Save File'