1
0
mirror of synced 2024-11-26 06:46:04 +03:00

use merged newData in case where an option already exists when using ArrayAdapter

This commit is contained in:
Phil Eberhardt 2015-07-09 18:40:56 -04:00
parent 3422460488
commit f5593e12e4

View File

@ -54,7 +54,7 @@ define([
var existingData = this.item($existingOption); var existingData = this.item($existingOption);
var newData = $.extend(true, {}, existingData, item); var newData = $.extend(true, {}, existingData, item);
var $newOption = this.option(existingData); var $newOption = this.option(newData);
$existingOption.replaceWith($newOption); $existingOption.replaceWith($newOption);