diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2021-11-12 05:40:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-12 05:40:50 +0300 |
commit | 0e53a20b235f5edd5ec98aab1c9daad48a88d46f (patch) | |
tree | 6f7f6a7ce1f2f6ece044907c71581fa89db65382 /plugins/CoreHome/vue/src/Matomo/Matomo.ts | |
parent | 1e4af959702fb184001db899bfb6ac5f8c12c85a (diff) |
[Vue] Cannot return IAngularEvent in $emit wrapper unfortunately. (#18296)
* Cannot return IAngularEvent in $emit wrapper unfortunately.
* built vue files
Diffstat (limited to 'plugins/CoreHome/vue/src/Matomo/Matomo.ts')
-rw-r--r-- | plugins/CoreHome/vue/src/Matomo/Matomo.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/CoreHome/vue/src/Matomo/Matomo.ts b/plugins/CoreHome/vue/src/Matomo/Matomo.ts index e2a00bc3b1..30b821f403 100644 --- a/plugins/CoreHome/vue/src/Matomo/Matomo.ts +++ b/plugins/CoreHome/vue/src/Matomo/Matomo.ts @@ -5,7 +5,6 @@ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ -import { IAngularEvent } from 'angular'; import Periods from '../Periods/Periods'; let originalTitle: string; @@ -61,13 +60,13 @@ piwik.postEventNoEmit = function postEventNoEmit( piwik.postEvent = function postMatomoEvent( eventName: string, ...args: any[] // eslint-disable-line -): IAngularEvent { +): void { piwik.postEventNoEmit(eventName, ...args); // required until angularjs is removed - angular.element(() => { + window.angular.element(() => { const $rootScope = piwik.helper.getAngularDependency('$rootScope') as any; // eslint-disable-line - return $rootScope.$oldEmit(eventName, ...args); + $rootScope.$oldEmit(eventName, ...args); }); }; |