Skip to content

Commit

Permalink
Merge pull request adobe#12175 from petetnt/petetnt/ctrl-z-hotfix
Browse files Browse the repository at this point in the history
[HOTFIX] Only update stat and clear contents when old stat is newer than current stat.
  • Loading branch information
abose committed Feb 24, 2016
2 parents 8c7f548 + f143690 commit abf8e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filesystem/FileSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ define(function (require, exports, module) {
var oldStat = entry._stat;
if (entry.isFile) {
// Update stat and clear contents, but only if out of date
if (!(stat && oldStat && stat.mtime.getTime() === oldStat.mtime.getTime())) {
if (!(stat && oldStat && stat.mtime.getTime() <= oldStat.mtime.getTime())) {
entry._clearCachedData();
entry._stat = stat;
this._fireChangeEvent(entry);
Expand Down

0 comments on commit abf8e99

Please sign in to comment.