O'Reilly logo

Mastering KnockoutJS by Timothy Moran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required