From b7133d56044be3e075dfcd10eca5df1eaa061ba3 Mon Sep 17 00:00:00 2001 From: jfh Date: Tue, 22 Sep 2020 19:43:40 +0200 Subject: [PATCH] supportsGoodDecimals_ not used anywhere so was removed --- package-lock.json | 18 +++++++++--------- package.json | 6 +++--- src/common/browser.js | 25 ------------------------- 3 files changed, 12 insertions(+), 37 deletions(-) diff --git a/package-lock.json b/package-lock.json index fc509915..aab4795b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2907,9 +2907,9 @@ } }, "@rollup/plugin-commonjs": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-15.0.0.tgz", - "integrity": "sha512-8uAdikHqVyrT32w1zB9VhW6uGwGjhKgnDNP4pQJsjdnyF4FgCj6/bmv24c7v2CuKhq32CcyCwRzMPEElaKkn0w==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-15.1.0.tgz", + "integrity": "sha512-xCQqz4z/o0h2syQ7d9LskIMvBSH4PX5PjYdpSSvgS+pQik3WahkQVNWg3D8XJeYjZoVWnIUQYDghuEMRGrmQYQ==", "dev": true, "requires": { "@rollup/pluginutils": "^3.1.0", @@ -12477,9 +12477,9 @@ "dev": true }, "jsdoc": { - "version": "3.6.5", - "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-3.6.5.tgz", - "integrity": "sha512-SbY+i9ONuxSK35cgVHaI8O9senTE4CDYAmGSDJ5l3+sfe62Ff4gy96osy6OW84t4K4A8iGnMrlRrsSItSNp3RQ==", + "version": "3.6.6", + "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-3.6.6.tgz", + "integrity": "sha512-znR99e1BHeyEkSvgDDpX0sTiTu+8aQyDl9DawrkOGZTTW8hv0deIFXx87114zJ7gRaDZKVQD/4tr1ifmJp9xhQ==", "dev": true, "requires": { "@babel/parser": "^7.9.4", @@ -18088,9 +18088,9 @@ } }, "rollup": { - "version": "2.27.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.27.1.tgz", - "integrity": "sha512-GiWHQvnmMgBktSpY/1+nrGpwPsTw4b9P28og2uedfeq4JZ16rzAmnQ5Pm/E0/BEmDNia1ZbY7+qu3nBgNa19Hg==", + "version": "2.28.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.28.1.tgz", + "integrity": "sha512-DOtVoqOZt3+FjPJWLU8hDIvBjUylc9s6IZvy76XklxzcLvAQLtVAG/bbhsMhcWnYxC0TKKcf1QQ/tg29zeID0Q==", "dev": true, "requires": { "fsevents": "~2.1.2" diff --git a/package.json b/package.json index 037e7407..0a0e8cd4 100644 --- a/package.json +++ b/package.json @@ -157,7 +157,7 @@ "@hkdobrev/run-if-changed": "^0.3.1", "@mysticatea/eslint-plugin": "^13.0.0", "@rollup/plugin-babel": "^5.2.1", - "@rollup/plugin-commonjs": "^15.0.0", + "@rollup/plugin-commonjs": "^15.1.0", "@rollup/plugin-dynamic-import-vars": "^1.1.0", "@rollup/plugin-node-resolve": "^9.0.0", "@rollup/plugin-replace": "^2.3.3", @@ -203,7 +203,7 @@ "husky": "^4.3.0", "imageoptim-cli": "^3.0.2", "jamilih": "^0.53.2", - "jsdoc": "^3.6.5", + "jsdoc": "^3.6.6", "license-badger": "^0.18.0", "lint-staged": "^10.4.0", "load-stylesheets": "^0.9.0", @@ -223,7 +223,7 @@ "remark-lint-ordered-list-marker-value": "^2.0.1", "requirejs": "^2.3.6", "rimraf": "^3.0.2", - "rollup": "2.27.1", + "rollup": "2.28.1", "rollup-plugin-copy": "^3.3.0", "rollup-plugin-filesize": "^9.0.2", "rollup-plugin-node-polyfills": "^0.2.1", diff --git a/src/common/browser.js b/src/common/browser.js index 05ab85d3..9d435954 100644 --- a/src/common/browser.js +++ b/src/common/browser.js @@ -1,4 +1,3 @@ -/* globals jQuery */ /** * Browser detection. * @module browser @@ -14,8 +13,6 @@ import 'pathseg'; import {NS} from './namespaces.js'; -const $ = jQuery; - const supportsSVG_ = (function () { return Boolean(document.createElementNS && document.createElementNS(NS.SVG, 'svg').createSVGRect); }()); @@ -125,22 +122,6 @@ const supportsEditableText_ = (function () { return isOpera_; }()); -const supportsGoodDecimals_ = (function () { -// Correct decimals on clone attributes (Opera < 10.5/win/non-en) -const rect = document.createElementNS(NS.SVG, 'rect'); -rect.setAttribute('x', 0.1); -const crect = rect.cloneNode(false); -const retValue = (!crect.getAttribute('x').includes(',')); -if (!retValue) { - // Todo: i18nize or remove - $.alert( - 'NOTE: This version of Opera is known to contain bugs in SVG-edit.\n' + - 'Please upgrade to the latest version in which the problems have been fixed.' - ); -} -return retValue; -}()); - const supportsNonScalingStroke_ = (function () { const rect = document.createElementNS(NS.SVG, 'rect'); rect.setAttribute('style', 'vector-effect:non-scaling-stroke'); @@ -258,12 +239,6 @@ export const supportsGoodTextCharPos = () => supportsGoodTextCharPos_; */ export const supportsEditableText = () => supportsEditableText_; -/** - * @function module:browser.supportsGoodDecimals - * @returns {boolean} -*/ -export const supportsGoodDecimals = () => supportsGoodDecimals_; - /** * @function module:browser.supportsNonScalingStroke * @returns {boolean}