/*!@license * Infragistics.Web.ClientUI igCombo KnockoutJS extension 19.1.20 * * Copyright (c) 2012-2019 Infragistics Inc. * * http://www.infragistics.com/ * * Depends on: * jquery-1.9.1.js * ig.util.js * ig.dataSource.js */ (function(factory){if(typeof define==="function"&&define.amd){define(["../modules/infragistics.ui.combo","knockout"],factory)}else{factory(jQuery,ko)}})(function($,ko){function selectItems(combo,selectedItems){var valueKey=combo.igCombo("option","valueKey"),allowCustomValue=combo.igCombo("option","allowCustomValue"),selectedValues=[],index,item,value;selectedItems=ko.utils.unwrapObservable(selectedItems);if(selectedItems){if(allowCustomValue&&!selectedItems.length){return}for(index=0;index0){firstItem=selectedItems[0];if(typeof firstItem==="function"){firstItem=firstItem()}if(typeof firstItem==="object"){selectionType="object"}else{selectionType="primitive"}}else{selectionType="primitive"}}items=typeof items==="function"?items():items;for(index=0;index