From 87bc9f1fa1fceccb248254030aaed16da5e6aed8 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 28 Jan 2019 11:24:08 +0100 Subject: Add OC and OCA namespace declarations to the bundle Signed-off-by: Christoph Wurst --- core/js/js.js | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'core/js/js.js') diff --git a/core/js/js.js b/core/js/js.js index fd6dcfcff6a..1aaee24af9b 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -39,11 +39,12 @@ function escapeHTML(s) { } /** @namespace OCP */ -var OCP = Object.assign({}, window.OCP), - /** - * @namespace OC - */ - OC = { +var OCP = Object.assign({}, window.OCP); + +/** + * @namespace OC + */ +Object.assign(window.OC, { PERMISSION_NONE:0, PERMISSION_CREATE:4, PERMISSION_READ:1, @@ -900,7 +901,7 @@ var OCP = Object.assign({}, window.OCP), } } -}; +}); /** * Current user attributes @@ -2338,12 +2339,6 @@ OC.set=function(name, value) { } })(); -/** - * Namespace for apps - * @namespace OCA - */ -window.OCA = {}; - /** * select a range in an input field * @link http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area -- cgit v1.2.3