Book Image

Mastering KnockoutJS

By : Timothy Moran
Book Image

Mastering KnockoutJS

By: Timothy Moran

Overview of this book

Table of Contents (16 chapters)
Mastering KnockoutJS
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 9. Under the Hood

We have covered the Knockout basics, learned how to extend Knockout's binding system, and seen how to organize applications. Now, it's time to indulge our inner tinkerers. In this chapter, we will look at the internals of Knockout to see what makes it tick. By the end of this chapter, you should be familiar with how Knockout handles the following:

  • Dependency tracking

  • The prototype chain

  • Parsing binding attribute expressions

  • Applying bindings

  • Templating

In addition to this, we will also look at the ko.utils namespace, which provides lots of useful tools for common actions.

Note

Note that all of the code discussed in this chapter is based on the Knockout 3.2 release. It is possible, and likely, that parts of this will change in the future.