Javascript authoritative guide (version 5th:
- Change "that" in row 3rd "rather that as a method" to "";
- In p143, replace "facts" in "the facts that JavaScript..." with "fact ";
- In section p170 9.5.1, "If you have only one level of subclass, You can simplify the syntax..." and:
Note however that this trick only works with shallow inheritance
Hierarchies. If B is a subclass of A and C is a subclass of B, and
Both B and C use this superclass trick, then when you create
Instance of C, this. superclass will refer to B (), and the B ()
Constructor will recurse infinitely. For anything other than simple
Subclasses, use the construtor chaining technique shown in Example
9-3.
- End of section p171 9.5.2 plus:
Again, note that this superclass property can only be used once
Within an inheritance hierarchy. If a class and a subclass both use
This trick, it will cause infinite recursion.
- In p276 example 14.2, "If (window. screenleft) {// ie & Others" is changed to "If (window. screenleft === undefined) {// ie & Others ";
- Change "then" in section 4th of section "then the focus ()" to "";
- In p355 Table 16.2, change "and" of "opacity specifies how opaque (or translucent) and element is." to "";
- The first two sentences of p411 17.3.2 are changed:
"Although the IE event model provides event details in an event
Object, ie only passes an event object to handlers registered
The non-standard <literal> attachevent () </literal> method (described
Below). Other event handlers are invoked with no arguments. instead
Of passing the event object as an argument to the handler, ie makes
It available as the <literal> event </literal> property of the global
Window object ."
- Section 2nd of p412 17.3.3 Insert the following sentence:
"An event handler registered with <literal> attachevent () </literal>
Will be invoked with a copy of the global
<Literal> window. event </literal> event object ."
- Replace "repuration" in the footer of p478 with "repuation ";
- P479 before section 1.1:
"The examples in this section and the rest of the chapter are all
Part of one larger module. They define utility functions in
Namespace (see chapter 10) named <literal> HTTP </literal>. None
The examples include the code to actually create this namespace,
However. The example download bundle provided des a file named HTTP. js
That includes this namespace-creation code, and you can simply add
The single line <literal> var HTTP ={}; </literal> to the examples
Shown here ."
- Before section P503 21.1.1, add:
"These utility functions are intended to be part of one large module,
And are all placed in a namespace (see chapter 10) named XML.
Examples shown here do not include code to actually create this
Namespace, however. The example download bundle between des a file
Named XML. js that uses des this namespace-creation code, and you
Can simply add the single line <literal> var XML ={}; </literal>
The examples shown here ."
- In p609 deletecount, "this argument is optional;..." is changed to "specify 0 to insert elements without deleting any .".
Reference: original Book Errata