From 706a1b8e96aa13dbb49b6c9146fdcbe8ab1c1237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 22 Mar 2019 09:52:38 +0100 Subject: [PATCH] Fix code style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- js/controller/BoardController.js | 4 +--- js/init-collections.js | 6 +++--- js/init.js | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/js/controller/BoardController.js b/js/controller/BoardController.js index dd0dab315..59e92e3b9 100644 --- a/js/controller/BoardController.js +++ b/js/controller/BoardController.js @@ -157,11 +157,9 @@ app.controller('BoardController', function ($rootScope, $scope, $element, $state model: BoardService.getCurrent() }, }); - $scope.mountCollections = () => { - console.log('mountCollections'); + $scope.mountCollections = function() { const MountingPoint = document.getElementById('collaborationResources'); if (MountingPoint) { - console.log(MountingPoint); ComponentVM.model = BoardService.getCurrent(); ComponentVM.$mount(MountingPoint); } diff --git a/js/init-collections.js b/js/init-collections.js index 75209e499..7482c1620 100644 --- a/js/init-collections.js +++ b/js/init-collections.js @@ -22,7 +22,7 @@ 'use strict'; -/* global __webpack_nonce__ OC */ +/* global __webpack_nonce__ __webpack_public_path__ OC t */ __webpack_nonce__ = btoa(OC.requestToken); // eslint-disable-line no-native-reassign __webpack_public_path__ = OC.linkTo('deck', 'js/build/'); @@ -31,7 +31,7 @@ import BoardSelector from './views/BoardSelector'; import './../css/collections.css'; -(function(OCP) { +((function(OCP) { Vue.prototype.$ = $ Vue.prototype.t = t @@ -64,4 +64,4 @@ import './../css/collections.css'; typeString: t('deck', 'board'), typeIconClass: 'icon-deck' }); -})(window.OCP); +})(window.OCP)); diff --git a/js/init.js b/js/init.js index 8f1fc9d94..c17c0ee98 100644 --- a/js/init.js +++ b/js/init.js @@ -1,6 +1,6 @@ 'use strict'; -/* global __webpack_nonce__ OC */ +/* global __webpack_nonce__ __webpack_public_path__ OC */ __webpack_nonce__ = btoa(OC.requestToken); // eslint-disable-line no-native-reassign __webpack_public_path__ = OC.linkTo('deck', 'js/build/');