diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-10-16 17:05:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-16 17:05:03 +0300 |
commit | a907267b0353658a9160a31b2fc83c7d9dd3a63e (patch) | |
tree | a9fc73d1e899bd4be79b3608dba3a577c85e7ba7 | |
parent | 9cf73ddc318765c0c4354326979eb585acb9f5be (diff) | |
parent | a7d6a3c211d199b05ff83d2a450a32f6c2a98652 (diff) |
Merge pull request #278 from nextcloud/fix/namespacev3.0.0-beta3
Define namespace early on
-rw-r--r-- | js/documents.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/js/documents.js b/js/documents.js index 82bf8f27..8ca05043 100644 --- a/js/documents.js +++ b/js/documents.js @@ -744,10 +744,6 @@ $(document).ready(function() { window.Files = FileList; - if (!OCA.RichDocuments) { - OCA.RichDocuments = {}; - } - OCA.RichDocuments.documentsMain = documentsMain; documentsMain.docs = $('.documentslist').documentGrid(); @@ -758,3 +754,9 @@ $(document).ready(function() { documentsMain.onStartup(); }); + +(function() { + if (!OCA.RichDocuments) { + OCA.RichDocuments = {}; + } +})(); |