From 0224c4287aa3f0ebdadec75d453f9aaafb053ed4 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Wed, 2 May 2018 10:13:45 +0200 Subject: [PATCH] Fixed stylistic remarks from #3682 (fixes #3709) --- openslides/core/static/js/core/base.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openslides/core/static/js/core/base.js b/openslides/core/static/js/core/base.js index 84415196f..1bd9ac01e 100644 --- a/openslides/core/static/js/core/base.js +++ b/openslides/core/static/js/core/base.js @@ -566,14 +566,14 @@ angular.module('OpenSlidesApp.core', [ // // It is possible to provide a scope, that is merged into the surrounding scope. // You can override functions or values of the surrounding scope by providing them: -// { Id: 'hookId', template: '', +// { id: 'hookId', template: '', // scope: { // customOrOverwritten: function () { /*Do something */ }, // }, // } // Or you provide a function that returns an object of functions/values to overwrite to // get access to the scope merged in: -// { Id: 'hookId', template: '', +// { id: 'hookId', template: '', // scope: function (scope) { // return { // customOrOverwritten: function () { @@ -592,15 +592,15 @@ angular.module('OpenSlidesApp.core', [ hooks: hooks, registerHook: function (hook) { // Deprecated: Set the new style 'id', if 'Id' is given. - if (hook.id === undefined) { + if (hook.id === void 0) { hook.id = hook.Id; } - if (hooks[hook.id] === undefined) { + if (hooks[hook.id] === void 0) { hooks[hook.id] = []; } // set override default - if (hook.override === undefined) { + if (hook.override === void 0) { hook.override = !!(hook.template || hook.templateUrl); } hooks[hook.id].push(hook);