From 34dd4edc2704b9b269cf47c9d695530c619cf8b5 Mon Sep 17 00:00:00 2001 From: NICK VALLEE Date: Thu, 4 Apr 2019 17:05:13 -0400 Subject: [PATCH] add monkey patch --- src/tooltip/tooltip.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tooltip/tooltip.js b/src/tooltip/tooltip.js index dd02a077a1..c380316f60 100644 --- a/src/tooltip/tooltip.js +++ b/src/tooltip/tooltip.js @@ -202,6 +202,12 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s } }; + // Chronogolf: monkey patch to handle zone error during e2e tests + if (window.Zone) { + var zone = new window.Zone(); + positionTooltip = zone.wrap(positionTooltip); + } + // Set up the correct scope to allow transclusion later ttScope.origScope = scope;