From a0fea2e463cc3539d5e37aa3f77a81e50b6bce97 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 31 Mar 2016 02:14:05 +0300 Subject: [PATCH] fixed a bug in .location handling on .loadIndex(..)... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/filesystem.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ui (gen4)/features/filesystem.js b/ui (gen4)/features/filesystem.js index 7a16354a..89970fa8 100755 --- a/ui (gen4)/features/filesystem.js +++ b/ui (gen4)/features/filesystem.js @@ -172,14 +172,13 @@ var FileSystemLoaderActions = actions.Actions({ logger && logger.emit('load index', index) + that.load(index) + that.loaded_paths = loaded - // XXX should we get the requested path or the base path currently loaded - that.__location ={ + that.__location = { path: loaded.length == 1 ? loaded[0] : path, method: 'loadIndex', } - - that.load(index) }) }], // XXX use the logger... @@ -568,6 +567,7 @@ var FileSystemWriterActions = actions.Actions({ } }], + // Mark data sections as changed... // // Mark everything changed... // .markChanged('all') @@ -584,8 +584,10 @@ var FileSystemWriterActions = actions.Actions({ // Mark image changed... // .markChanged(, ...) // - // NOTE: when .changes is null (i.e. everything changed) then calling - // this with anything other than 'none' will have no effect. + // + // NOTE: when .changes is null (i.e. everything changed, marked via + // .markChanged('all')) then calling this with anything other + // than 'none' will have no effect. markChanged: ['- System/', function(){ var that = this