diff options
Diffstat (limited to 'core/src/Polyfill/tooltip.js')
-rw-r--r-- | core/src/Polyfill/tooltip.js | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/core/src/Polyfill/tooltip.js b/core/src/Polyfill/tooltip.js index 08cc58c338c..1001d62bd8d 100644 --- a/core/src/Polyfill/tooltip.js +++ b/core/src/Polyfill/tooltip.js @@ -1,7 +1,9 @@ -/* +/** * @copyright 2019 Julius Härtl <jus@bitgrid.net> * - * @author 2019 Julius Härtl <jus@bitgrid.net> + * @author Christoph Wurst <christoph@winzerhof-wurst.at> + * @author John Molakvoæ <skjnldsv@protonmail.com> + * @author Julius Härtl <jus@bitgrid.net> * * @license GNU AGPL version 3 or any later version * @@ -16,7 +18,8 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * */ $.prototype.tooltip = (function(tooltip) { @@ -25,11 +28,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') } } |