knockout v3.3.0 Release Notes
Release Date: 2015-02-18 // about 9 years ago-
โจ Enhancements
๐ง #1504 - Component configuration can specify a
synchronous
option to render already loaded components synchronously.
#1463 - Component child elements are provided to thecreateViewModel
method, component child elements are exposed on the binding context as$componentTemplateNodes
, and thetemplate
binding can accept an array of DOM nodes directly through thenodes
option.
#1449 - Binding context now contains a$component
property that references the nearest component view model (allows for easily binding to the root of the current component).
#1596 - Create a writable computed within a custom element component when an expression evaluates to an observable (less need to use.$raw
property).
#1576 - computed observables (pure or deferred) notify anawake
event with the current value when awakening, pure computeds notify anasleep
event with anundefined
value when going to sleep, and thegetSubscriptionsCount
method on an observable can accept an event name argument to return only the count of subscriptions for that event.
#1543 - Sleeping pure computed observables now cache their value.
#1635 - Exportko.utils.setTextContent
#1427 - Exportko.dependencyDetection.ignore
asko.ignoreDependencies
๐ Fixes
๐ #1321 - Ensure that template nodes are created and moved within the correct document to fix cross-window issues in IE.
๐ #1434 - Binding parser skips all colons between the name and value. Support returning malformed bindings (non key-value pairs).
#1468 -css
binding was not clearing a previously added dynamic class when the value bound against changes to null.
#1507 - Memory leak fix forforeach
/template
binding
#1513 - Fix error infixUpContinuousNodeArray
when usingjquery.tmpl
โก๏ธ #1515 - UpdatedependentObservable._latestValue
when a pureComputed wakes up (affects debug build only)
๐ #1526 - Component'srequire
option should not try to do an AMD-stylerequire
in a CommonJS scenario.
#1556 - Check that the value passed tooptionsAfterRender
is a function before calling
#1597 - CSS binding now works properly with SVG elements
#1606 - Don't bind contents of<textarea>
elements
โก๏ธ #1623 - When usingvalueAllowUnset: true
,null
selection should be maintained whenoption
items are updated.
๐ #1634 - Better clean-up ofarrayChange
subscriptions