Bläddra i källkod

FontUtils: Simplified code. See #6403

Mr.doob 10 år sedan
förälder
incheckning
60e27ec37b
1 ändrade filer med 2 tillägg och 6 borttagningar
  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;