Javascript authoritative guide (version 5th): The first brush of the English photocopies;

Source: Internet
Author: User

Javascript authoritative guide (version 5th:

  1. Change "that" in row 3rd "rather that as a method" to "";
  2. In p143, replace "facts" in "the facts that JavaScript..." with "fact ";
  3. 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.
  4. 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.
  5. In p276 example 14.2, "If (window. screenleft) {// ie & Others" is changed to "If (window. screenleft === undefined) {// ie & Others ";
  6. Change "then" in section 4th of section "then the focus ()" to "";
  7. In p355 Table 16.2, change "and" of "opacity specifies how opaque (or translucent) and element is." to "";
  8. 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 ."
  9. 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 ."
  10. Replace "repuration" in the footer of p478 with "repuation ";
  11. 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 ."
  12. 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 ."
  13. In p609 deletecount, "this argument is optional;..." is changed to "specify 0 to insert elements without deleting any .".

Reference: original Book Errata

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.