Skip to content

Commit

Permalink
chore: Remove jquery-migrate and jQuery tooltip polyfills from glob…
Browse files Browse the repository at this point in the history
…al scope

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Feb 9, 2024
1 parent 677e386 commit bae46da
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 84 deletions.
22 changes: 0 additions & 22 deletions core/src/Polyfill/index.js

This file was deleted.

46 changes: 0 additions & 46 deletions core/src/Polyfill/tooltip.js

This file was deleted.

2 changes: 0 additions & 2 deletions core/src/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ import { initCore } from './init.js'

import _ from 'underscore'
import $ from 'jquery'
import 'jquery-migrate/dist/jquery-migrate.min.js'
// TODO: switch to `jquery-ui` package and import widgets and effects individually
// `jquery-ui-dist` is used as a workaround for the issue of missing effects
import 'jquery-ui-dist/jquery-ui.js'
import 'jquery-ui-dist/jquery-ui.css'
import 'jquery-ui-dist/jquery-ui.theme.css'
// END TODO
import Backbone from 'backbone'
import './Polyfill/tooltip.js'
import ClipboardJS from 'clipboard'
import { dav } from 'davclient.js'
import Handlebars from 'handlebars'
Expand Down
2 changes: 0 additions & 2 deletions core/src/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ import 'jquery-ui/ui/widgets/button.js'
import 'jquery-ui/themes/base/theme.css'
import 'jquery-ui/themes/base/button.css'

import './Polyfill/tooltip.js'

import 'strengthify'
import 'strengthify/strengthify.css'

Expand Down
1 change: 0 additions & 1 deletion core/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

import 'core-js/stable/index.js'
import 'regenerator-runtime/runtime.js'
import './Polyfill/index.js'

// If you remove the line below, tests won't pass
// eslint-disable-next-line no-unused-vars
Expand Down
2 changes: 1 addition & 1 deletion core/src/systemtags/systemtagsinputfield.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ import templateSelection from './templates/selection.handlebars'
var $item = $(ev.target).closest('.systemtags-item')
var tagId = $item.attr('data-id')
this.collection.get(tagId).destroy()
$(ev.target).tooltip('hide')
$(ev.target).tooltip('option', 'hide')
$item.closest('.select2-result').remove()
// TODO: spinner
return false
Expand Down
9 changes: 0 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
"handlebars": "^4.7.7",
"ical.js": "^1.4.0",
"jquery": "~3.7",
"jquery-migrate": "~3.4",
"jquery-ui": "^1.13.2",
"jquery-ui-dist": "^1.13.2",
"libphonenumber-js": "^1.10.41",
Expand Down

0 comments on commit bae46da

Please sign in to comment.