Преглед на файлове

FontUtils: Simplified code. See #6403

Mr.doob преди 10 години
родител
ревизия
60e27ec37b
променени са 1 файла, в които са добавени 2 реда и са изтрити 6 реда
  1. 2 6
      src/extras/FontUtils.js

+ 2 - 6
src/extras/FontUtils.js

@@ -464,10 +464,6 @@ THREE.FontUtils.generateShapes = function ( text, parameters ) {
 } )( THREE.FontUtils );
 
 // To use the typeface.js face files, hook up the API
-var typeface_js = { faces: THREE.FontUtils.faces, loadFace: THREE.FontUtils.loadFace };
-if ( typeof self !== 'undefined' ){
-	self._typeface_js = typeface_js;
-}
-THREE.typeface_js = typeface_js;
-
 
+THREE.typeface_js = { faces: THREE.FontUtils.faces, loadFace: THREE.FontUtils.loadFace };
+if ( typeof self !== 'undefined' ) self._typeface_js = THREE.typeface_js;