UNPKG

epubjs

Version:

Render ePub documents in the browser, across many devices

22 lines (21 loc) 3.19 kB
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><title>Glossary</title><link rel="stylesheet" href="core.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"/></head><body><div class="glossary" title="Glossary"><div class="titlepage"><div><div><h1 class="title"><a id="glossary"/>Glossary</h1></div></div></div><dl><dt><a id="blockingfunction"/>Blocking operation</dt><dd><p>A <a id="I_indexterm_d1e13935" class="indexterm"/>blocking operation requires the program to halt while it is waiting for a slow resource.</p><p>Typically, this is either a hardware resource (such as a disk drive), or a network resource (such as an HTTP request). Because the request cannot require a result from a slow resource, it blocks subsequent operation until it is complete, even if the computer or program still has available resources such as CPU or memory available.</p></dd><dt>Callback</dt><dd><p>A <a id="I_indexterm_d1e13950" class="indexterm"/>callback is a function that is “called back” to after a blocking operation. Typically, this is an I/O operation such as disk access. Callbacks can take parameters.</p></dd><dt><a id="class"/>Class</dt><dd><p>See <a class="glosssee" href="go01.html#pseudoclass">Pseudoclass</a></p></dd><dt><a id="function"/>Function</dt><dd><p><a id="gloss_id35948825"/>A unit <a id="I_indexterm_d1e13966" class="indexterm"/>of code that can be invoked with a set of variable parameters. It may pass a single return. In JavaScript, functions also have a <span class="emphasis"><em>context</em></span>, which defines the value of the reserved <code class="literal">this</code> variable. Functions in JavaScript are considered <span class="emphasis"><em>first class</em></span> in that they can also be treated as variables or properties of objects.</p></dd><dt><a id="method"/>Method</dt><dd><p><a id="gloss_id35948807"/>A function <a id="I_indexterm_d1e13990" class="indexterm"/>that is a property of an object.</p><p>See Also <a class="glossseealso" href="go01.html#function">Function</a></p></dd><dt>Nonblocking operation</dt><dd><p>A <a id="I_indexterm_d1e14001" class="indexterm"/>nonblocking operation is one that does not block.</p><p>See Also <a class="glossseealso" href="go01.html#blockingfunction">Blocking operation</a></p></dd><dt><a id="pseudoclass"/>Pseudoclass</dt><dd><p><a id="gloss_id35816996"/>A <a id="I_indexterm_d1e14014" class="indexterm"/>pseudoclass is a way of creating an abtract object in JavaScript that is intended to be initialized into an object. Pseudoclasses should be turned into objects using the <code class="literal">new</code> keyword. Pseudoclass names start with a leading capital by convention to differentiate them from other kinds of objects. For example, <code class="literal">Server</code> would be a pseudoclass, and <code class="literal">server</code> might be an instance of that pseudoclass.</p></dd></dl></div></body></html>