code: function (mode, index, item) {
  /*Line 376 - 'AtomItemsControl.js' */                if (!this._created)
  /*Line 377 - 'AtomItemsControl.js' */                    return;
  
  /*Line 379 - 'AtomItemsControl.js' */                Atom.refresh(this, "allValues");
  
  /*Line 381 - 'AtomItemsControl.js' */                var value = this.get_value();
  
  /*Line 383 - 'AtomItemsControl.js' */                if (this.hasItems()) {
  /*Line 384 - 'AtomItemsControl.js' */                    this.onCollectionChanged(mode, index, item);
  /*Line 385 - 'AtomItemsControl.js' */                    //this._selectedItems.length = 0;
  /*Line 386 - 'AtomItemsControl.js' */                    if (!(value || this._allowSelectFirst)) {
  /*Line 387 - 'AtomItemsControl.js' */                        AtomBinder.clear(this._selectedItems);
  /*Line 388 - 'AtomItemsControl.js' */                    }
  /*Line 389 - 'AtomItemsControl.js' */                }
  
  
  /*Line 392 - 'AtomItemsControl.js' */                if (value != null) {
  /*Line 393 - 'AtomItemsControl.js' */                    this.set_value(value);
  /*Line 394 - 'AtomItemsControl.js' */                    if (this.get_selectedIndex() != -1)
  /*Line 395 - 'AtomItemsControl.js' */                        return;
  /*Line 396 - 'AtomItemsControl.js' */                }
  
  /*Line 398 - 'AtomItemsControl.js' */                this.selectDefault();
  
  /*Line 400 - 'AtomItemsControl.js' */            }
docs: /*Line 375 - 'AtomItemsControl.js'