Skip to content

Commit

Permalink
Merge pull request #278 from nextcloud/fix/namespace
Browse files Browse the repository at this point in the history
Define namespace early on
  • Loading branch information
rullzer authored Oct 16, 2018
2 parents 9cf73dd + a7d6a3c commit a907267
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions js/documents.js
Original file line number Diff line number Diff line change
Expand Up @@ -744,10 +744,6 @@ $(document).ready(function() {

window.Files = FileList;

if (!OCA.RichDocuments) {
OCA.RichDocuments = {};
}

OCA.RichDocuments.documentsMain = documentsMain;

documentsMain.docs = $('.documentslist').documentGrid();
Expand All @@ -758,3 +754,9 @@ $(document).ready(function() {

documentsMain.onStartup();
});

(function() {
if (!OCA.RichDocuments) {
OCA.RichDocuments = {};
}
})();

0 comments on commit a907267

Please sign in to comment.