From 9860f32d4cc5d185998569aa3ddd62b3c53aa019 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 12 Mar 2013 15:41:52 -0700 Subject: [PATCH] Add cancel callback to promptToSaveItem --- src/app/pane.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/pane.coffee b/src/app/pane.coffee index 240540042..c1397b89e 100644 --- a/src/app/pane.coffee +++ b/src/app/pane.coffee @@ -159,13 +159,13 @@ class Pane extends View destroyInactiveItems: -> @destroyItem(item) for item in @getItems() when item isnt @activeItem - promptToSaveItem: (item, nextAction) -> + promptToSaveItem: (item, nextAction, cancelAction) -> uri = item.getUri() atom.confirm( "'#{item.getTitle()}' has changes, do you want to save them?" "Your changes will be lost if close this item without saving." "Save", => @saveItem(item, nextAction) - "Cancel", null + "Cancel", cancelAction "Don't Save", nextAction )