فهرست منبع

removed unneeded block

Gildas 7 سال پیش
والد
کامیت
64f936683f
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 3
      lib/single-file/font-face-proxy.js

+ 1 - 3
lib/single-file/font-face-proxy.js

@@ -55,9 +55,7 @@ this.fontFaceProxy = this.fontFaceProxy || (() => {
 				detail.src = argumentsList[1];
 				const descriptors = argumentsList[2];
 				if (descriptors) {
-					Object.keys(descriptors).forEach(descriptor => {
-						detail[FONT_STYLE_PROPERTIES[descriptor]] = descriptors[descriptor];
-					});
+					Object.keys(descriptors).forEach(descriptor => detail[FONT_STYLE_PROPERTIES[descriptor]] = descriptors[descriptor]);
 				}
 				dispatchEvent(new CustomEvent("single-file-font-face", { detail }));
 				return new FontFace(...argumentsList);