diff options
Diffstat (limited to 'core/src/Polyfill/tooltip.js')
-rw-r--r-- | core/src/Polyfill/tooltip.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/src/Polyfill/tooltip.js b/core/src/Polyfill/tooltip.js index 08cc58c338c..2dd7592edb4 100644 --- a/core/src/Polyfill/tooltip.js +++ b/core/src/Polyfill/tooltip.js @@ -25,11 +25,15 @@ $.prototype.tooltip = (function(tooltip) { return tooltip.call(this, config) } catch (ex) { if (ex instanceof TypeError && config === 'destroy') { - console.error('Deprecated call $.tooltip(\'destroy\') has been deprecated and should be removed') + if (window.TESTING === undefined) { + console.error('Deprecated call $.tooltip(\'destroy\') has been deprecated and should be removed') + } return tooltip.call(this, 'dispose') } if (ex instanceof TypeError && config === 'fixTitle') { - console.error('Deprecated call $.tooltip(\'fixTitle\') has been deprecated and should be removed') + if (window.TESTING === undefined) { + console.error('Deprecated call $.tooltip(\'fixTitle\') has been deprecated and should be removed') + } return tooltip.call(this, '_fixTitle') } } |