From ee6566c21bc9b68b03884e1c3173b9e1e267d37f Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 14 Aug 2012 12:20:31 +0300 Subject: [PATCH] Update client.js --- client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.js b/client.js index 1ceb941e..a448f2b3 100644 --- a/client.js +++ b/client.js @@ -495,7 +495,9 @@ CloudClient.Util = (function(){ 'could not be none' }); - this.unSetCurrentFile(this.getCurrentFile()); + var lCurrentFileWas = this.getCurrentFile(); + if(lCurrentFileWas) + this.unSetCurrentFile(lCurrentFileWas); return pCurrentFile.className = CloudCommander.CURRENT_FILE; };