aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-04-29 17:50:34 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-07 09:22:47 +0200
commitae8959af74a8d7b4b6a4f282e13ab87fe35f4ff6 (patch)
tree77765467be9f058d4b9f3bf8a1a665fbf34b11cf /core/js/js.js
parentc60f6716b41dde9d1d7b73077b49ad0ee71761ef (diff)
downloadnextcloud-server-ae8959af74a8d7b4b6a4f282e13ab87fe35f4ff6.tar.gz
nextcloud-server-ae8959af74a8d7b4b6a4f282e13ab87fe35f4ff6.zip
Move OC.get and OC.set to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 0959528b31a..76b0ecda492 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -1113,41 +1113,4 @@ if (window.history.pushState) {
else {
$(window).on('hashchange', _.bind(OC.Util.History._onPopState, OC.Util.History));
}
-
-/**
- * Get a variable by name
- * @param {string} name
- * @return {*}
- */
-OC.get=function(name) {
- var namespaces = name.split(".");
- var tail = namespaces.pop();
- var context=window;
-
- for(var i = 0; i < namespaces.length; i++) {
- context = context[namespaces[i]];
- if(!context){
- return false;
- }
- }
- return context[tail];
-};
-
-/**
- * Set a variable by name
- * @param {string} name
- * @param {*} value
*/
-OC.set=function(name, value) {
- var namespaces = name.split(".");
- var tail = namespaces.pop();
- var context=window;
-
- for(var i = 0; i < namespaces.length; i++) {
- if(!context[namespaces[i]]){
- context[namespaces[i]]={};
- }
- context = context[namespaces[i]];
- }
- context[tail]=value;
-};