aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js19
1 files changed, 7 insertions, 12 deletions
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
@@ -2339,12 +2340,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
* @param {type} start