Add namespace in case the file is loaded individually

Some apps might load this file in JS unit tests and need the OCA.Files
namespace to exist.
This commit is contained in:
Vincent Petry 2015-08-20 17:54:52 +02:00
parent 9573d7d60d
commit 7c64ae4663
1 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,8 @@
}); });
DetailTabView._TAB_COUNT = 0; DetailTabView._TAB_COUNT = 0;
OCA.Files = OCA.Files || {};
OCA.Files.DetailTabView = DetailTabView; OCA.Files.DetailTabView = DetailTabView;
})(); })();