enyojs/ares-project — pull request #479 by vherilier (2013-08-23 15:13:04+00:00)
Title: ENYO-2809: fix edited file closing issue

Related JIRA: https://enyojs.atlassian.net/browse/ENYO-2809

After closing an edited document, the newly focused document was set to be no more edited because it becomes the current document and is used instead of the closed document when the "saveComplete" process is performed.
And a not bubbled event triggers a saving action on the newly focused document without any permission from the user.

Checked on Windows 7 : Chrome

Enyo-DCO-1.1-Signed-off-by: Vincent HERILIER vincent.herilier@hp.com