By mswatcher
via kraigbrockschmidt.com
Submitted: Feb 06 2013 / 12:32
Having covered the basics of WinJS.Class.define in Part 1 and WinJS.Class.derive in Part 2, we come to the third method in WinJS.Class, which is the mix method. Let's first see what differentiates a mixin from a derived class. When you derive one class from another, the new class is the combination of the base class' members and those additional ones you specify for the derivation. In WinJS.Class.derive, you can only specify one base class.
Tweet
SaveShareSend
Tags: frameworks, javascript, windows
Add your comment