Custom knockout binding fires twice, unexpectedly
问题 I have written a custom binding handler to bind my viewmodel data to a highcharts chart. This really has 2 parts, one binds the initial config required for highcharts, the second binds the series to the chart. here is the bindingHandler code ko.bindingHandlers.highchart = { update: function(element, valueAccessor, allBindings, viewModel, bindingContext) { var value = valueAccessor(); var valueUnwrapped = ko.unwrap(value); console.log ('update',element.id,valueUnwrapped); if(allBindings.get(