Secrets of the JavaScript Ninja
Publisher: Manning Publications
Published: December 28, 2012
Language: eng
Number of pages: 392
ISBN-13: 9781933988696
Table of contents: title: contents; title: preface; title: acknowledgments; title: about this book; title: about the authors; label: Part 1
title: Preparing for training; label: Chapter 1
title: Enter the ninja; title: The JavaScript libraries we’ll be tapping; title: Understanding the JavaScript language; title: Cross-browser considerations; title: Current best practices; title: Summary; label: Chapter 2
title: Arming with testing and debugging; title: Debugging code; title: Test generation; title: Testing frameworks; title: The fundamentals of a test suite; title: Summary; label: Part 2
title: Apprentice training; label: Chapter 3
title: Functions are fundamental; title: What’s with the functional difference?; title: Declarations; title: Invocations; title: Summary; label: Chapter 4
title: Wielding functions; title: Anonymous functions; title: Recursion; title: Fun with function as objects; title: Variable-length argument lists; title: Checking for functions; title: Summary; label: Chapter 5
title: Closing in on closures; title: How closures work; title: Putting closures to work; title: Binding function contexts; title: Partially applying functions; title: Overriding function behavior; title: Immediate functions; title: Summary; label: Chapter 6
title: Object-orientation with prototypes; title: Instantiation and prototypes; title: The gotchas!; title: Writing class-like code; title: Summary; label: Chapter 7
title: Wrangling regular expressions; title: Why regular expressions rock; title: A regular expression refresher; title: Compiling regular expressions; title: Capturing matching segments; title: Replacing using functions; title: Solving common problems with regular expressions; title: Summary; label: Chapter 8
title: Taming threads and timers; title: How timers and threading work; title: Minimum timer delay and reliability; title: Dealing with computationally expensive processing; title: Central timer control; title: Asynchronous testing; title: Summary; label: Part 3
title: Ninja training; label: Chapter 9
title: Ninja alchemy: runtime code evaluation; title: Code evaluation mechanisms; title: Function “decompilation”; title: Code evaluation in action; title: Summary; label: Chapter 10
title: With statements; title: What’s with “with”?; title: Real-world examples; title: Importing namespaced code; title: Testing; title: Templating with “with”; title: Summary; label: Chapter 11
title: Developing cross-browser strategies; title: Choosing which browsers to support; title: The five major development concerns; title: Implementation strategies; title: Reducing assumptions; title: Summary; label: Chapter 12
title: Cutting through attributes, properties, and CSS; title: DOM attributes and properties; title: Cross-browser attribute issues; title: Styling attribute headaches; title: Fetching computed styles; title: Summary; label: Part 4
title: Master training; label: Chapter 13
title: Surviving events; title: Binding and unbinding event handlers; title: The Event object; title: Handler management; title: Triggering events; title: Bubbling and delegation; title: The document ready event; title: Summary; label: Chapter 14
title: Manipulating the DOM; title: Injecting HTML into the DOM; title: Cloning elements; title: Removing elements; title: Text contents; title: Summary; label: Chapter 15
title: CSS selector engines; title: The W3C Selectors API; title: Using XPath to find elements; title: The pure-DOM implementation; title: Summary; title: index