From 91bfbea7016cdf485e41a495664d080a16aea621 Mon Sep 17 00:00:00 2001 From: Chema Date: Tue, 30 Oct 2012 14:53:38 +0100 Subject: [PATCH] Make sure file entries in working set are different --- src/document/DocumentManager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/document/DocumentManager.js b/src/document/DocumentManager.js index 39a5fea0dc9..945dcbcef49 100644 --- a/src/document/DocumentManager.js +++ b/src/document/DocumentManager.js @@ -206,7 +206,9 @@ define(function (require, exports, module) { return; } - // Add + // Add to _workingSet making sure we store a different instance from the + // one in the Document. See issue #1971 for more details. + file = new NativeFileSystem.FileEntry(file.fullPath); _workingSet.push(file); // Add to MRU order: either first or last, depending on whether it's already the current doc or not