- Fix (jPicker): Avoid setting Math.precision pseudo-global

- Refactoring (jPicker): Use ES6 templates; avoid unnecessary check
- Refactoring: Avoid useless assignment (courtesty lgtm)
- Build: Update files
This commit is contained in:
Brett Zamir
2018-09-22 08:49:14 +08:00
parent be17cd249c
commit dab1ff81af
15 changed files with 399 additions and 439 deletions

3
dist/canvg.js vendored
View File

@@ -981,9 +981,6 @@ var canvg = (function (exports) {
// ajax
svg.ajax = function (url, asynch) {
var AJAX = window.XMLHttpRequest ? new XMLHttpRequest() : new window.ActiveXObject('Microsoft.XMLHTTP');
if (!AJAX) {
return null;
}
if (asynch) {
return new Promise(function (resolve, reject) {
var req = AJAX.open('GET', url, true);