/*Line 32 - 'AtomControl.js'
161543
function (ctrl, key, value, element) {
/*Line 33 - 'AtomControl.js' */        value = value.substr(1, value.length - 2);
/*Line 34 - 'AtomControl.js' */        var be = AtomEvaluator.parse(value);
/*Line 35 - 'AtomControl.js' */        if (be.length == 0) {
/*Line 36 - 'AtomControl.js' */            value = eval(value);
/*Line 37 - 'AtomControl.js' */            AtomBinder.setValue(ctrl, key, value);
/*Line 38 - 'AtomControl.js' */        } else {
/*Line 39 - 'AtomControl.js' */            if (be.length == 1 && be.path[0] == be.original) {
/*Line 40 - 'AtomControl.js' */                ctrl.bind(element, key, value, false);
/*Line 41 - 'AtomControl.js' */            }
/*Line 42 - 'AtomControl.js' */            else {
/*Line 43 - 'AtomControl.js' */                ctrl.bind(element, key, be.path, false, be.method);
/*Line 44 - 'AtomControl.js' */            }
/*Line 45 - 'AtomControl.js' */        }
/*Line 46 - 'AtomControl.js' */    }
429926
function (element, key, value, twoWays, vf, events) {

/*Line 799 - 'AtomControl.js' */                if (value == null) {
/*Line 800 - 'AtomControl.js' */                    // remove existing binding...
/*Line 801 - 'AtomControl.js' */                    this.clearBinding(element, key);
/*Line 802 - 'AtomControl.js' */                    return;
/*Line 803 - 'AtomControl.js' */                }

/*Line 805 - 'AtomControl.js' */                var target = this;
/*Line 806 - 'AtomControl.js' */                if (value && value.constructor == String && /^window\./g.test(value)) {
/*Line 807 - 'AtomControl.js' */                    target = window;
/*Line 808 - 'AtomControl.js' */                }

/*Line 810 - 'AtomControl.js' */                var thisElement = this.get_element();

/*Line 812 - 'AtomControl.js' */                var jq = thisElement != element;

/*Line 814 - 'AtomControl.js' */                if (!jq) {
/*Line 815 - 'AtomControl.js' */                    var f = this["get_" + key];
/*Line 816 - 'AtomControl.js' */                    if (f == undefined || f == null) {
/*Line 817 - 'AtomControl.js' */                        jq = true;
/*Line 818 - 'AtomControl.js' */                    }
/*Line 819 - 'AtomControl.js' */                }

/*Line 821 - 'AtomControl.js' */                switch (key) {
/*Line 822 - 'AtomControl.js' */                    case "value":
/*Line 823 - 'AtomControl.js' */                        if (/input/gi.test(element.nodeName)) { jq = true; }
/*Line 824 - 'AtomControl.js' */                        this.addBinding(target, element, "value", value, twoWays, jq, vf, events);
/*Line 825 - 'AtomControl.js' */                        break;
/*Line 826 - 'AtomControl.js' */                    case "text":
/*Line 827 - 'AtomControl.js' */                        this.addBinding(target, element, "text", value, false, true, vf, events);
/*Line 828 - 'AtomControl.js' */                        break;
/*Line 829 - 'AtomControl.js' */                    default:
/*Line 830 - 'AtomControl.js' */                        this.addBinding(target, element, key, value, twoWays, jq, vf, events);
/*Line 831 - 'AtomControl.js' */                        break;
/*Line 832 - 'AtomControl.js' */                }

/*Line 834 - 'AtomControl.js' */            }
132964
function (ctrl, key, value, element) {
/*Line 9 - 'AtomControl.js' */        value = value.substr(1, value.length - 2);
/*Line 10 - 'AtomControl.js' */        var be = AtomEvaluator.parse(value);
/*Line 11 - 'AtomControl.js' */        if (be.path) {
/*Line 12 - 'AtomControl.js' */            var ae = new AtomEnumerator(be.path);
/*Line 13 - 'AtomControl.js' */            value = [];
/*Line 14 - 'AtomControl.js' */            while (ae.next()) {
/*Line 15 - 'AtomControl.js' */                var pe = new AtomEnumerator(ae.current());
/*Line 16 - 'AtomControl.js' */                var v = ctrl;
/*Line 17 - 'AtomControl.js' */                while (pe.next()) {
/*Line 18 - 'AtomControl.js' */                    v = AtomBinder.getValue(v, pe.current());
/*Line 19 - 'AtomControl.js' */                }
/*Line 20 - 'AtomControl.js' */                value.push(v);
/*Line 21 - 'AtomControl.js' */            }
/*Line 22 - 'AtomControl.js' */        } else {
/*Line 23 - 'AtomControl.js' */            value = [value];
/*Line 24 - 'AtomControl.js' */        }
/*Line 25 - 'AtomControl.js' */        value.push(Atom);
/*Line 26 - 'AtomControl.js' */        value.push(AtomPromise);
/*Line 27 - 'AtomControl.js' */        value.push($x);
/*Line 28 - 'AtomControl.js' */        value = be.method.apply(null, value);

/*Line 30 - 'AtomControl.js' */        ctrl.setLocalValue(key, value, element);
/*Line 31 - 'AtomControl.js' */    }
532478
function (f) {
/*Line 171 - 'AtomItemsControl.js' */                if (f == this._filter)
/*Line 172 - 'AtomItemsControl.js' */                    return;
/*Line 173 - 'AtomItemsControl.js' */                this._filter = f;
/*Line 174 - 'AtomItemsControl.js' */                this._filteredItems = null;
/*Line 175 - 'AtomItemsControl.js' */                if (this.hasItems()) {
/*Line 176 - 'AtomItemsControl.js' */                    this.onCollectionChangedInternal("refresh", -1, null);
/*Line 177 - 'AtomItemsControl.js' */                }
/*Line 178 - 'AtomItemsControl.js' */            }
318333
function () {


/*Line 699 - 'AtomItemsControl.js' */                if (this._items) {
/*Line 700 - 'AtomItemsControl.js' */                    this.onCollectionChangedInternal("refresh", -1, null);
/*Line 701 - 'AtomItemsControl.js' */                }

/*Line 703 - 'AtomItemsControl.js' */                var caller = this;

/*Line 705 - 'AtomItemsControl.js' */                this.dispatcher.callLater(function () {
/*Line 706 - 'AtomItemsControl.js' */                    if (caller._autoScrollToSelection) {
/*Line 707 - 'AtomItemsControl.js' */                        caller.bringSelectionIntoView();
/*Line 708 - 'AtomItemsControl.js' */                    }
/*Line 709 - 'AtomItemsControl.js' */                });

/*Line 711 - 'AtomItemsControl.js' */            }
733009
function (sender, key) {
/*Line 50 - 'AtomBinding.js' */                // update target....
/*Line 51 - 'AtomBinding.js' */                // most like end of path...
/*Line 52 - 'AtomBinding.js' */                if (this.path == null || this.path.length == 0)
/*Line 53 - 'AtomBinding.js' */                    return;
/*Line 54 - 'AtomBinding.js' */                var ae = new AtomEnumerator(this.path);
/*Line 55 - 'AtomBinding.js' */                var obj = this.control;
/*Line 56 - 'AtomBinding.js' */                var objKey = null;
/*Line 57 - 'AtomBinding.js' */                while (ae.next()) {
/*Line 58 - 'AtomBinding.js' */                    objKey = ae.current();
/*Line 59 - 'AtomBinding.js' */                    objKey.value = obj;
/*Line 60 - 'AtomBinding.js' */                    if (!obj)
/*Line 61 - 'AtomBinding.js' */                        return;
/*Line 62 - 'AtomBinding.js' */                    if (!ae.isLast())
/*Line 63 - 'AtomBinding.js' */                        obj = AtomBinder.getValue(obj, objKey.path);
/*Line 64 - 'AtomBinding.js' */                }
/*Line 65 - 'AtomBinding.js' */                var value = null;
/*Line 66 - 'AtomBinding.js' */                if (this.jq) {
/*Line 67 - 'AtomBinding.js' */                    switch (this.key) {
/*Line 68 - 'AtomBinding.js' */                        case "valueAsDate":
/*Line 69 - 'AtomBinding.js' */                            value = this.element.valueAsDate;
/*Line 70 - 'AtomBinding.js' */                            break;
/*Line 71 - 'AtomBinding.js' */                        case "checked":
/*Line 72 - 'AtomBinding.js' */                            value = this.element.checked ? true : false;
/*Line 73 - 'AtomBinding.js' */                            break;
/*Line 74 - 'AtomBinding.js' */                        default:
/*Line 75 - 'AtomBinding.js' */                            value = $(this.element).val();
/*Line 76 - 'AtomBinding.js' */                    }
/*Line 77 - 'AtomBinding.js' */                } else {
/*Line 78 - 'AtomBinding.js' */                    value = AtomBinder.getValue(this.control, this.key);
/*Line 79 - 'AtomBinding.js' */                }
/*Line 80 - 'AtomBinding.js' */                AtomBinder.setValue(obj, objKey.path, value);
/*Line 81 - 'AtomBinding.js' */            }
634386
function () {
/*Line 104 - 'AtomListBox.js' */                var e = this._element;
/*Line 105 - 'AtomListBox.js' */                if (/select/i.test(e.tagName)) {
/*Line 106 - 'AtomListBox.js' */                    var i = this.get_selectedIndex();
/*Line 107 - 'AtomListBox.js' */                    if (e.selectedIndex != i) {
/*Line 108 - 'AtomListBox.js' */                        WebAtoms.dispatcher.callLater(function () {
/*Line 109 - 'AtomListBox.js' */                            e.selectedIndex = i;
/*Line 110 - 'AtomListBox.js' */                        });
/*Line 111 - 'AtomListBox.js' */                    }
/*Line 112 - 'AtomListBox.js' */                } else {
/*Line 113 - 'AtomListBox.js' */                    baseType.updateChildSelections.apply(this, arguments);
/*Line 114 - 'AtomListBox.js' */                }
/*Line 115 - 'AtomListBox.js' */            }
1270791
function (element,value) {
/*Line 281 - 'AtomControl.js' */        if (element.atomClass) {
/*Line 282 - 'AtomControl.js' */            $(element).removeClass(element.atomClass);
/*Line 283 - 'AtomControl.js' */        }
/*Line 284 - 'AtomControl.js' */        if (value) {
/*Line 285 - 'AtomControl.js' */            value = AtomUI.createCss(value);
/*Line 286 - 'AtomControl.js' */            if (value) {
/*Line 287 - 'AtomControl.js' */                $(element).addClass(value);
/*Line 288 - 'AtomControl.js' */            }
/*Line 289 - 'AtomControl.js' */            element.atomClass = value;
/*Line 290 - 'AtomControl.js' */        }
/*Line 291 - 'AtomControl.js' */    }
699986
function (value) {

/*Line 174 - 'AtomBinding.js' */                if (!this.pathList && this.vf) {
/*Line 175 - 'AtomBinding.js' */                    value = [value];
/*Line 176 - 'AtomBinding.js' */                }

/*Line 178 - 'AtomBinding.js' */                if (this.vf) {
/*Line 179 - 'AtomBinding.js' */                    value.push(Atom);
/*Line 180 - 'AtomBinding.js' */                    value.push(AtomPromise);
/*Line 181 - 'AtomBinding.js' */                    value.push($x);
/*Line 182 - 'AtomBinding.js' */                    value = this.vf.apply(this, value);
/*Line 183 - 'AtomBinding.js' */                }

/*Line 185 - 'AtomBinding.js' */                if (value instanceof AtomPromise) {
/*Line 186 - 'AtomBinding.js' */                    value._persist = true;
/*Line 187 - 'AtomBinding.js' */                }

/*Line 189 - 'AtomBinding.js' */                this._lastValue = value;
/*Line 190 - 'AtomBinding.js' */                this._isUpdating = true;
/*Line 191 - 'AtomBinding.js' */                this.control.setLocalValue(this.key, value, this.element, true);
/*Line 192 - 'AtomBinding.js' */                this._isUpdating = false;
/*Line 193 - 'AtomBinding.js' */            }
392157
function (scope, sender) {

/*Line 60 - 'AtomWindow.js' */                var tt = this.getTemplate("frameTemplate");

/*Line 62 - 'AtomWindow.js' */                tt = AtomUI.cloneNode(tt);

/*Line 64 - 'AtomWindow.js' */                var tt$ = $(tt);

/*Line 66 - 'AtomWindow.js' */                var wdiv = tt$.find("[data-atom-presenter=windowDiv],[atom-presenter=windowDiv]").get(0);
/*Line 67 - 'AtomWindow.js' */                var wtitle = tt$.find("[data-atom-presenter=windowTitleDiv],[atom-presenter=windowTitleDiv]").get(0);

/*Line 69 - 'AtomWindow.js' */                var wt = this.getTemplate("windowTemplate");

/*Line 71 - 'AtomWindow.js' */                $(wt).addClass("atom-window-template");

/*Line 73 - 'AtomWindow.js' */                if (!(AtomUI.attr(wt, "atom-dock"))) {
/*Line 74 - 'AtomWindow.js' */                    AtomUI.attr(wt, "atom-dock", "Fill");
/*Line 75 - 'AtomWindow.js' */                }

/*Line 77 - 'AtomWindow.js' */                if (wt.length) {
/*Line 78 - 'AtomWindow.js' */                    for (var i = 0; i < wt.length; i++) {
/*Line 79 - 'AtomWindow.js' */                        wdiv.appendChild(wt[i]);
/*Line 80 - 'AtomWindow.js' */                    }
/*Line 81 - 'AtomWindow.js' */                } else {
/*Line 82 - 'AtomWindow.js' */                    wdiv.appendChild(wt);
/*Line 83 - 'AtomWindow.js' */                }

/*Line 85 - 'AtomWindow.js' */                var wct = this.getTemplate("commandTemplate");
/*Line 86 - 'AtomWindow.js' */                if (wct) {
/*Line 87 - 'AtomWindow.js' */                    AtomUI.attr(wct, "atom-dock", "Bottom");
/*Line 88 - 'AtomWindow.js' */                    wct.setAttribute("class", "atom-wizard-command-bar");
/*Line 89 - 'AtomWindow.js' */                    wdiv.appendChild(wct);
/*Line 90 - 'AtomWindow.js' */                }

/*Line 92 - 'AtomWindow.js' */                this.set_innerTemplate(tt);

/*Line 94 - 'AtomWindow.js' */                if (this._iframe) {
/*Line 95 - 'AtomWindow.js' */                    this._iframe.atomWindow = this;
/*Line 96 - 'AtomWindow.js' */                }

/*Line 98 - 'AtomWindow.js' */                if (sender) {
/*Line 99 - 'AtomWindow.js' */                    this._opener = sender;
/*Line 100 - 'AtomWindow.js' */                    AtomBinder.refreshValue(this, "opener");
/*Line 101 - 'AtomWindow.js' */                    AtomBinder.refreshValue(this, "openerData");
/*Line 102 - 'AtomWindow.js' */                }

/*Line 104 - 'AtomWindow.js' */                var _this = this;
/*Line 105 - 'AtomWindow.js' */                WebAtoms.dispatcher.callLater(function () {
/*Line 106 - 'AtomWindow.js' */                    AtomBinder.setValue(_this, "isOpen", true);
/*Line 107 - 'AtomWindow.js' */                    if (!_this._url) {
/*Line 108 - 'AtomWindow.js' */                        var children = $(_this._windowPlaceholder).find("input");
/*Line 109 - 'AtomWindow.js' */                        if (children.length > 0) {
/*Line 110 - 'AtomWindow.js' */                            var item = children.get(0);
/*Line 111 - 'AtomWindow.js' */                            try {
/*Line 112 - 'AtomWindow.js' */                                item.focus();
/*Line 113 - 'AtomWindow.js' */                            } catch (er) {
/*Line 114 - 'AtomWindow.js' */                            }
/*Line 115 - 'AtomWindow.js' */                        }
/*Line 116 - 'AtomWindow.js' */                    }
/*Line 117 - 'AtomWindow.js' */                });
/*Line 118 - 'AtomWindow.js' */            }
291017
function () {
/*Line 1042 - 'AtomItemsControl.js' */                base.onUpdateUI.call(this);

/*Line 1044 - 'AtomItemsControl.js' */                if (this._uiVirtualize) {
/*Line 1045 - 'AtomItemsControl.js' */                    this.onVirtualCollectionChanged();
/*Line 1046 - 'AtomItemsControl.js' */                }

/*Line 1048 - 'AtomItemsControl.js' */                var ae = new ChildEnumerator(this._itemsPresenter);
/*Line 1049 - 'AtomItemsControl.js' */                while (ae.next()) {
/*Line 1050 - 'AtomItemsControl.js' */                    var item = ae.current();
/*Line 1051 - 'AtomItemsControl.js' */                    if (!item.atomControl)
/*Line 1052 - 'AtomItemsControl.js' */                        continue;
/*Line 1053 - 'AtomItemsControl.js' */                    var dataItem = item.atomControl.get_data();
/*Line 1054 - 'AtomItemsControl.js' */                    AtomBinder.refreshValue(item.atomControl.get_scope(), "itemSelected");
/*Line 1055 - 'AtomItemsControl.js' */                    this.applyItemStyle(item, dataItem, ae.isFirst(), ae.isLast());
/*Line 1056 - 'AtomItemsControl.js' */                }
/*Line 1057 - 'AtomItemsControl.js' */            }
14186
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' */            }
642394
function () {

/*Line 119 - 'AtomListBox.js' */                this.setClass();

/*Line 121 - 'AtomListBox.js' */                baseType.init.call(this);
/*Line 122 - 'AtomListBox.js' */                var self = this;

/*Line 124 - 'AtomListBox.js' */                var e = this._element;
/*Line 125 - 'AtomListBox.js' */                if (/select/i.test(e.tagName)) {
/*Line 126 - 'AtomListBox.js' */                    this.set_allowSelectFirst(true);
/*Line 127 - 'AtomListBox.js' */                    this.bindEvent(e, 'change', function () {
/*Line 128 - 'AtomListBox.js' */                        AtomBinder.setValue(self, 'selectedIndex', e.selectedIndex);
/*Line 129 - 'AtomListBox.js' */                    });
/*Line 130 - 'AtomListBox.js' */                }



/*Line 134 - 'AtomListBox.js' */                this.selectCommand = function () {
/*Line 135 - 'AtomListBox.js' */                    self.onSelectItem.apply(self, arguments);
/*Line 136 - 'AtomListBox.js' */                };
/*Line 137 - 'AtomListBox.js' */                this.selectAllCommand = function () {
/*Line 138 - 'AtomListBox.js' */                    self.set_selectAll(true);
/*Line 139 - 'AtomListBox.js' */                };
/*Line 140 - 'AtomListBox.js' */                this.clearSelectionCommand = function () {
/*Line 141 - 'AtomListBox.js' */                    self.set_selectedIndex(-1);
/*Line 142 - 'AtomListBox.js' */                };
/*Line 143 - 'AtomListBox.js' */            }
1334761
function () {

/*Line 139 - 'AtomAutoCompleteBox.js' */                if (!this._items || this._items.length == 0)
/*Line 140 - 'AtomAutoCompleteBox.js' */                    return;

/*Line 142 - 'AtomAutoCompleteBox.js' */                //if (this.get_selectedIndex() != -1)
/*Line 143 - 'AtomAutoCompleteBox.js' */                //    return;

/*Line 145 - 'AtomAutoCompleteBox.js' */                var ae = new AtomEnumerator(this._items);
/*Line 146 - 'AtomAutoCompleteBox.js' */                var lp = this._labelPath;

/*Line 148 - 'AtomAutoCompleteBox.js' */                var cl = this._displayLabel;

/*Line 150 - 'AtomAutoCompleteBox.js' */                if (cl)
/*Line 151 - 'AtomAutoCompleteBox.js' */                    cl = cl.toLowerCase();

/*Line 153 - 'AtomAutoCompleteBox.js' */                while (ae.next()) {
/*Line 154 - 'AtomAutoCompleteBox.js' */                    var item = ae.current();
/*Line 155 - 'AtomAutoCompleteBox.js' */                    var l = item;
/*Line 156 - 'AtomAutoCompleteBox.js' */                    if (lp)
/*Line 157 - 'AtomAutoCompleteBox.js' */                        l = l[lp];
/*Line 158 - 'AtomAutoCompleteBox.js' */                    if (l.toLowerCase().indexOf(cl)==0) {
/*Line 159 - 'AtomAutoCompleteBox.js' */                        AtomBinder.setValue(this, "selectedItem", item);
/*Line 160 - 'AtomAutoCompleteBox.js' */                        AtomBinder.setValue(this, "selectedText", l);
/*Line 161 - 'AtomAutoCompleteBox.js' */                        this.bringSelectionIntoView();
/*Line 162 - 'AtomAutoCompleteBox.js' */                        return;
/*Line 163 - 'AtomAutoCompleteBox.js' */                    }
/*Line 164 - 'AtomAutoCompleteBox.js' */                }
/*Line 165 - 'AtomAutoCompleteBox.js' */            }
916760
function () {
/*Line 30 - 'AtomFormGrid.js' */                var element = this._element;
/*Line 31 - 'AtomFormGrid.js' */                $(element).addClass("atom-form-grid");

/*Line 33 - 'AtomFormGrid.js' */                var children = $(element).children();

/*Line 35 - 'AtomFormGrid.js' */                var ae = new AtomEnumerator(children);

/*Line 37 - 'AtomFormGrid.js' */                AtomUI.removeAllChildren(element);

/*Line 39 - 'AtomFormGrid.js' */                var container = document.createElement("DIV");
/*Line 40 - 'AtomFormGrid.js' */                //container.setAttribute("style-width", "[$owner.controlWidth]");
/*Line 41 - 'AtomFormGrid.js' */                $(container).addClass("atom-form-grid-container");

/*Line 43 - 'AtomFormGrid.js' */                element.appendChild(container);

/*Line 45 - 'AtomFormGrid.js' */                var minLabelWidth = AtomUI.attr(this._element, "atom-min-label-width");

/*Line 47 - 'AtomFormGrid.js' */                this.getTemplate("fieldTemplate");

/*Line 49 - 'AtomFormGrid.js' */                while (ae.next()) {
/*Line 50 - 'AtomFormGrid.js' */                    var item = ae.current();

/*Line 52 - 'AtomFormGrid.js' */                    var at = AtomUI.attr(item,"atom-type");
/*Line 53 - 'AtomFormGrid.js' */                    if (at == "AtomFormRow") {
/*Line 54 - 'AtomFormGrid.js' */                        var table = document.createElement("TABLE");
/*Line 55 - 'AtomFormGrid.js' */                        container.appendChild(table);
/*Line 56 - 'AtomFormGrid.js' */                        $(table).addClass("atom-form-grid-row");
/*Line 57 - 'AtomFormGrid.js' */                        var tbody = document.createElement("TBODY");
/*Line 58 - 'AtomFormGrid.js' */                        table.appendChild(tbody);

/*Line 60 - 'AtomFormGrid.js' */                        var tr = document.createElement("TR");
/*Line 61 - 'AtomFormGrid.js' */                        tbody.appendChild(tr);

/*Line 63 - 'AtomFormGrid.js' */                        var children = $(item).children();
/*Line 64 - 'AtomFormGrid.js' */                        var ce = new AtomEnumerator(children);
/*Line 65 - 'AtomFormGrid.js' */                        while (ce.next()) {
/*Line 66 - 'AtomFormGrid.js' */                            var td = document.createElement("TD");
/*Line 67 - 'AtomFormGrid.js' */                            tr.appendChild(td);
/*Line 68 - 'AtomFormGrid.js' */                            this.createField(td, ce.current());
/*Line 69 - 'AtomFormGrid.js' */                        }

/*Line 71 - 'AtomFormGrid.js' */                        continue;
/*Line 72 - 'AtomFormGrid.js' */                    }
/*Line 73 - 'AtomFormGrid.js' */                    if (at == "AtomFormTabControl" || at == "AtomTabControl") {


/*Line 76 - 'AtomFormGrid.js' */                        var tabBar = document.createElement("ul");
/*Line 77 - 'AtomFormGrid.js' */                        tabBar.setAttribute("atom-type", "AtomToggleButtonBar");
/*Line 78 - 'AtomFormGrid.js' */                        var tabBarID = AtomUI.assignID(tabBar);
/*Line 79 - 'AtomFormGrid.js' */                        tabBar.setAttribute("atom-name", tabBarID);
/*Line 80 - 'AtomFormGrid.js' */                        tabBar.setAttribute("atom-show-tabs", "true");
/*Line 81 - 'AtomFormGrid.js' */                        var te = document.createElement("li");
/*Line 82 - 'AtomFormGrid.js' */                        tabBar.appendChild(te);
/*Line 83 - 'AtomFormGrid.js' */                        te.setAttribute("atom-text", "{$data.label}");
/*Line 84 - 'AtomFormGrid.js' */                        te.setAttribute("atom-template", "itemTemplate");
/*Line 85 - 'AtomFormGrid.js' */                        //td.appendChild(tabBar);
/*Line 86 - 'AtomFormGrid.js' */                        this.createField(container, tabBar);

/*Line 88 - 'AtomFormGrid.js' */                        var tbc = allControls[tabBarID];

/*Line 90 - 'AtomFormGrid.js' */                        var ce = new ChildEnumerator(item);
/*Line 91 - 'AtomFormGrid.js' */                        var list = [];
/*Line 92 - 'AtomFormGrid.js' */                        var index = 0;
/*Line 93 - 'AtomFormGrid.js' */                        while (ce.next()) {
/*Line 94 - 'AtomFormGrid.js' */                            var child = ce.current();
/*Line 95 - 'AtomFormGrid.js' */                            $(child).remove();
/*Line 96 - 'AtomFormGrid.js' */                            child.setAttribute("style-display", "[$scope." + tabBarID + ".selectedIndex == " + index + " ? '' : 'none']");
/*Line 97 - 'AtomFormGrid.js' */                            var cf = this.createField(container, child);
/*Line 98 - 'AtomFormGrid.js' */                            list.push(cf);
/*Line 99 - 'AtomFormGrid.js' */                            //if (cf.constructor == WebAtoms.AtomFormGridLayout) {

/*Line 101 - 'AtomFormGrid.js' */                            //}
/*Line 102 - 'AtomFormGrid.js' */                            index++;
/*Line 103 - 'AtomFormGrid.js' */                        }

/*Line 105 - 'AtomFormGrid.js' */                        tbc.set_items(list);
/*Line 106 - 'AtomFormGrid.js' */                        continue;
/*Line 107 - 'AtomFormGrid.js' */                    }
/*Line 108 - 'AtomFormGrid.js' */                    this.createField(container, item);

/*Line 110 - 'AtomFormGrid.js' */                }

/*Line 112 - 'AtomFormGrid.js' */            }
720078
function (e) {

/*Line 908 - 'AtomControl.js' */                // disposing only one element
/*Line 909 - 'AtomControl.js' */                if (e) {
/*Line 910 - 'AtomControl.js' */                    var eac = e.atomControl;
/*Line 911 - 'AtomControl.js' */                    if (eac) {
/*Line 912 - 'AtomControl.js' */                        eac.dispose();
/*Line 913 - 'AtomControl.js' */                    } else {
/*Line 914 - 'AtomControl.js' */                        this.clearBinding(e);
/*Line 915 - 'AtomControl.js' */                        this.disposeChildren(e);
/*Line 916 - 'AtomControl.js' */                    }
/*Line 917 - 'AtomControl.js' */                    $(e).remove();
/*Line 918 - 'AtomControl.js' */                    return;
/*Line 919 - 'AtomControl.js' */                }

/*Line 921 - 'AtomControl.js' */                this._disposed = true;
/*Line 922 - 'AtomControl.js' */                this.disposeChildren(this._element);
/*Line 923 - 'AtomControl.js' */                this.clearBinding();
/*Line 924 - 'AtomControl.js' */                this.bindings.length = 0;
/*Line 925 - 'AtomControl.js' */                base.dispose.apply(this, arguments);
/*Line 926 - 'AtomControl.js' */            }
1202709
function (ctrl, p) {
/*Line 336 - 'AtomUI.js' */        if (ctrl._presenters) {
/*Line 337 - 'AtomUI.js' */            var ae = new AtomEnumerator(ctrl._presenters);
/*Line 338 - 'AtomUI.js' */            while (ae.next()) {
/*Line 339 - 'AtomUI.js' */                var c = ae.current();
/*Line 340 - 'AtomUI.js' */                if (c == p)
/*Line 341 - 'AtomUI.js' */                    return ctrl;
/*Line 342 - 'AtomUI.js' */            }
/*Line 343 - 'AtomUI.js' */        }
/*Line 344 - 'AtomUI.js' */        return this.getPresenterOwner(ctrl.get_atomParent(), p);
/*Line 345 - 'AtomUI.js' */    }