📜 ⬆️ ⬇️

KnockoutJS 2.2.0 released

Steve Sanderson announces the release of the next version of knockoutjs.

As always, in such cases many errors were corrected, the code structure was optimized, the performance was tuned, and so on.

About new features under the cut
')
From among the interesting changes, if you believe the author's blog:
1. The foreach binding now takes into account the order of the elements in the array. When changing the order, the elements are moved according to the positions in the array (and they are moved to the DOM, because it was previously implemented through addition and deletion)

You can use beforeMove and afterMove calbeks to animate the movement.

2. CSS binding has learned to assign programmatically generated class names to elements, unlike statics before.

3. Support IE10

4. Improved subscription detection mechanism. This allows in some cases to avoid unnecessary work on the subscription to the elements. (which is good news)

5. Improved AMD support

6. Text binding has learned to work with virtual bindings.

7. A peek function has been introduced that allows controlling dependencies of Observable and computed variables.

original

Source: https://habr.com/ru/post/156665/


All Articles