Changeset 1913
- Timestamp:
- 2011-07-20 14:58:20 (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/field.js
r1820 r1913 159 159 */ 160 160 Options.prototype.set = function( values, labels) { 161 162 this.values = values;161 values = $.extend([], values); //clone to avoid issue #464 162 labels = labels ? $.extend([], labels) : null; 163 163 if (this.type) { 164 164 this.userValues = new Array(); … … 180 180 for (var i = values.length; i>0; i--) { 181 181 values[i] = values[i-1]; 182 labels[i] = labels[i-1]; 182 labels[i] = labels[i-1]; 183 183 this.userValues[i] = this.userValues[i-1]; 184 184 } … … 188 188 } 189 189 190 this.labels = labels;191 190 this.values = values; 191 this.labels = labels; 192 192 193 193 this.update();
Note: See TracChangeset
for help on using the changeset viewer.