Skip to content

Commit b39e990

Browse files
authored
Remove <figure> from JS docs (#6128)
1 parent 7dd31d2 commit b39e990

File tree

1 file changed

+3
-12
lines changed
  • files/en-us/web/javascript/guide/details_of_the_object_model

1 file changed

+3
-12
lines changed

files/en-us/web/javascript/guide/details_of_the_object_model/index.html

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -306,19 +306,13 @@ <h3 id="Adding_properties">Adding properties</h3>
306306

307307
<p>As soon as JavaScript executes this statement, the <code>mark</code> object also has the <code>specialty</code> property with the value of <code>"none"</code>. The following figure shows the effect of adding this property to the <code>Employee</code> prototype and then overriding it for the <code>Engineer</code> prototype.</p>
308308

309-
<figure>
310-
<img alt="" class="internal" src="figure8.4.png">
311-
<figcaption>Adding properties</figcaption>
312-
</figure>
309+
<img alt="Adding properties" src="figure8.4.png">
313310

314311
<h2 id="More_flexible_constructors">More flexible constructors</h2>
315312

316313
<p>The constructor functions shown so far do not let you specify property values when you create an instance. As with Java, you can provide arguments to constructors to initialize property values for instances. The following figure shows one way to do this.</p>
317314

318-
<figure>
319-
<img alt="" class="internal" src="figure8.5.png">
320-
<figcaption>Specifying properties in a constructor, take 1</figcaption>
321-
</figure>
315+
<img alt="Specifying properties in a constructor, take 1" src="figure8.5.png">
322316

323317
<p>The following pairs of examples show the Java and JavaScript definitions for these objects.</p>
324318

@@ -410,10 +404,7 @@ <h2 id="More_flexible_constructors">More flexible constructors</h2>
410404

411405
<p>So far, the constructor function has created a generic object and then specified local properties and values for the new object. You can have the constructor add more properties by directly calling the constructor function for an object higher in the prototype chain. The following figure shows these new definitions.</p>
412406

413-
<figure>
414-
<img alt="" class="internal" src="figure8.6.png">
415-
<figcaption>Specifying properties in a constructor, take 2</figcaption>
416-
</figure>
407+
<img alt="Specifying properties in a constructor, take 2" src="figure8.6.png">
417408

418409
<p>Let's look at one of these definitions in detail. Here's the new definition for the <code>Engineer</code> constructor:</p>
419410

0 commit comments

Comments
 (0)