后续遍历registeredControls，重新排列
162204
function _reorderComps() {
        var tmpArray = [];
        var dictory = {};

        for (var n = 0; n < this.registeredControls.length; n++) {
            dictory[this.registeredControls[n].className] = this.registeredControls[n];
        }
        for (var n = 0; n < this.registeredControls.length; n++) {
            traverse(this.registeredControls[n]);
        }

        this.registeredControls = tmpArray;

        function traverse(control) {
            if (inArray(control, tmpArray)) return;
            if (control.dependencies.length > 0) {
                for (var i = 0, len = control.dependencies.length; i < len; i++) {
                    var childControl = dictory[control.dependencies[i]];
                    traverse(childControl);
                }
            }
            tmpArray.push(control);
        }
    }
808219
function reset() {
			aBuffer = that.aBuffer = [];
			aRenderedControls = that.aRenderedControls = [];
			aStyleStack = that.aStyleStack = [{}];
		}
793734
function() {
			if (!this.settings.placeholder) return;
			var $input = this.$control_input;
	
			if (this.items.length) {
				$input.removeAttr('placeholder');
			} else {
				$input.attr('placeholder', this.settings.placeholder);
			}
			$input.triggerHandler('update', {force: true});
		}
869489
function update(oControl, aContexts, fnBefore, fnAfter) {
			var aChildren = oControl[oAggregationInfo._sGetter]() || [],
				oContext,
				oClone;
			if (aChildren.length > aContexts.length) {
				for (var i = aContexts.length; i < aChildren.length; i++) {
					oClone = aChildren[i];
					oControl[oAggregationInfo._sRemoveMutator](oClone);
					oClone.destroy("KeepDom");
				}
			}
			for (var i = 0; i < aContexts.length; i++) {
				oContext = aContexts[i];
				oClone = aChildren[i];
				if (fnBefore) {
					fnBefore(oContext);
				}
				if (oClone) {
					oClone.setBindingContext(oContext, oBindingInfo.model);
				} else {
					oClone = fnFactory(getIdSuffix(oControl, i), oContext);
					oClone.setBindingContext(oContext, oBindingInfo.model);
					oControl[oAggregationInfo._sMutator](oClone);
				}
				if (fnAfter) {
					fnAfter(oContext, oClone);
				}
			}
		}
126595
private void buildControl() {
		buildControlPanel.reset();
		buildTargetPanel.reset();

		// Setup Trigger
		setupTrigger();

		// Create target
		SubordinateTarget target = setupTarget();

		// Create Actions
		com.github.bordertech.wcomponents.subordinate.Action trueAction;
		com.github.bordertech.wcomponents.subordinate.Action falseAction;

		switch ((ControlActionType) drpActionType.getSelected()) {
			case ENABLE_DISABLE:
				trueAction = new Enable(target);
				falseAction = new Disable(target);
				break;

			case SHOW_HIDE:
				trueAction = new Show(target);
				falseAction = new Hide(target);
				break;

			case MAN_OPT:
				trueAction = new Mandatory(target);
				falseAction = new Optional(target);
				break;

			case SHOWIN_HIDEIN:
				trueAction = new ShowInGroup(target, targetGroup);
				falseAction = new HideInGroup(target, targetGroup);
				break;

			case ENABLEIN_DISABLEIN:
				trueAction = new EnableInGroup(target, targetGroup);
				falseAction = new DisableInGroup(target, targetGroup);
				break;

			default:
				throw new SystemException("ControlAction type not valid");
		}

		// Create Condition
		Condition condition = createCondition();

		if (cbNot.isSelected()) {
			condition = new Not(condition);
		}

		// Create Rule
		Rule rule = new Rule(condition, trueAction, falseAction);

		// Create Subordinate
		WSubordinateControl control = new WSubordinateControl();
		control.addRule(rule);

		buildControlPanel.add(control);

		if (targetCollapsible.getDecoratedLabel() != null) {
			targetCollapsible.getDecoratedLabel().setTail(new WText(control.toString()));
		}

		control = new WSubordinateControl();
		rule = new Rule(new Equal(cbClientDisableTrigger, true), new Disable((SubordinateTarget) trigger), new Enable((SubordinateTarget) trigger));
		control.addRule(rule);
		buildControlPanel.add(control);
	}
1208012
function () {
    this.controllerPresent = false;
    this.isControllerPresent = trackedControlsUtils.isControllerPresent; // to allow mock
    this.buttonStates = {};
    this.previousAxis = [];
    this.onModelLoaded = bind(this.onModelLoaded, this);
    this.checkIfControllerPresent = bind(this.checkIfControllerPresent, this);
    this.onGamepadConnected = bind(this.onGamepadConnected, this);
    this.onGamepadDisconnected = bind(this.onGamepadDisconnected, this);
  }
1097273
function(value) {
			var $input = this.$control_input;
			var changed = $input.val() !== value;
			if (changed) {
				$input.val(value).triggerHandler('update');
				this.lastValue = value;
			}
		}
486725
public function onInvalidControl() {
		$auth=$this->_getAuthController();
		if(URequest::isAjax()){
			$this->jquery->get($auth->_getBaseRoute()."/noAccess/".implode(".", Startup::$urlParts),$auth->_getBodySelector(),["historize"=>false]);	
			echo $this->jquery->compile($this->view);
		}else{
			parent::initialize();
			$auth->noAccess(Startup::$urlParts);
			parent::finalize();
		}
		exit();
	}
1151296
public void ensureChangeHandlers() {

        if (!m_changeHandlerRegistry.isEmpty()) {
            for (HandlerRegistration reg : m_changeHandlerRegistry.values()) {
                reg.removeHandler();
            }
            m_changeHandlerRegistry.clear();
        }
        for (List<CmsEntity> attr : m_entityAttributes.values()) {
            for (CmsEntity child : attr) {
                registerChangeHandler(child);
                child.ensureChangeHandlers();
            }
        }
    }
1245062
function registerView(view) {
  var name = view.getDebugName();
  var wrapped = new RegistryWrapper(view, 'views');
  flatRegistry.views[name] = wrapped;
  if (!view.parentView && !view.isComponentView) {
    nestedRegistry.views[name] = wrapped;
  }
  if (typeof view.destroy === 'function') {
    wrapped.destroy = _.bind(view.destroy, view);
    view.destroy = _.bind(function() {
      var name = this.obj.getDebugName();
      delete nestedRegistry.views[name];
      delete flatRegistry.views[name];
      updateNestedModels();
      triggerChange();
      this.destroy();
    }, wrapped);
  }
  updateNestedModels();
  triggerChange();
}
443706
private void fireUpdated(Object control) {
		if (control.equals(minSpinner)) {
			int minY = ((Integer) minSpinner.getValue()).intValue();
			if (minY < panel.getWorldMaxY()) {
				panel.setWorldMinY(minY);
				panel.makeSureCurveFits();
				panel.repaint();
			} else {
				minSpinner.setValue(new Integer((int) panel.getWorldMinY()));
			}
		} else if (control.equals(maxSpinner)) {
			int maxY = ((Integer) maxSpinner.getValue()).intValue();
			if (maxY > panel.getWorldMinY()) {
				panel.setWorldMaxY(maxY);
				panel.makeSureCurveFits();
				panel.repaint();
			} else {
				maxSpinner.setValue(new Integer((int) panel.getWorldMaxY()));
			}
		}
	}
1048996
synchronized void updateRegistration(BundleContext ctx) {
        if (registration == null) {
            registration = ctx.registerService(KeystoreConfig.class, this, properties);
        } else {
            registration.setProperties(properties);
        }
    }
296666
function(command) {
            var self    = this,
                control = null,
                output  = new mixitup.CommandMultimix(),
                i       = -1;

            self.callActions('beforeUpdateControls', arguments);

            // Sanitise to defaults

            if (command.filter) {
                output.filter = command.filter.selector;
            } else {
                output.filter = self.state.activeFilter.selector;
            }

            if (command.sort) {
                output.sort = self.buildSortString(command.sort);
            } else {
                output.sort = self.buildSortString(self.state.activeSort);
            }

            if (output.filter === self.config.selectors.target) {
                output.filter = 'all';
            }

            if (output.filter === '') {
                output.filter = 'none';
            }

            h.freeze(output);

            for (i = 0; control = self.controls[i]; i++) {
                control.update(output, self.toggleArray);
            }

            self.callActions('afterUpdateControls', arguments);
        }
852418
def on_load(self, event):
        ''''''
        dlg = wx.FileDialog(None, self.settings.get_title(), '', "", '*.*', wx.FD_OPEN)
        if dlg.ShowModal() == wx.ID_OK:
            self.settings.load(dlg.GetPath())
        # update the controls with new values
        for label in self.setting_map.keys():
            setting = self.setting_map[label]
            ctrl = self.controls[label]
            value = ctrl.GetValue()
            if isinstance(value, str) or isinstance(value, unicode):
                ctrl.SetValue(str(setting.value))
            else:
                ctrl.SetValue(setting.value)
586537
private void initialize() {
		registrations.clear();
		for (Layer<?> layer : mapModel.getLayers()) {
			registrations.add(layer.addLayerChangedHandler(new LayerChangedHandler() {

				public void onLabelChange(LayerLabeledEvent event) {
				}

				public void onVisibleChange(LayerShownEvent event) {
					render();
				}

			}));
			registrations.add(layer.addLayerStyleChangedHandler(new LayerStyleChangedHandler() {

				public void onLayerStyleChange(LayerStyleChangeEvent event) {
					render();
				}
			}));
		}
		for (final VectorLayer layer : mapModel.getVectorLayers()) {
			layer.addLayerFilteredHandler(new LayerFilteredHandler() {

				public void onFilterChange(LayerFilteredEvent event) {
					render();
				}
			});
		}
		render();
	}
750168
function registerComponents (newComponents) {
  var config = Vue$2.config;
  var newConfig = {};
  if (Array.isArray(newComponents)) {
    newComponents.forEach(function (component) {
      if (!component) {
        return
      }
      if (typeof component === 'string') {
        components[component] = true;
        newConfig[component] = true;
      } else if (typeof component === 'object' && typeof component.type === 'string') {
        components[component.type] = component;
        newConfig[component.type] = true;
      }
    });
    var oldIsReservedTag = config.isReservedTag;
    config.isReservedTag = function (name) {
      return newConfig[name] || oldIsReservedTag(name)
    };
  }
}
932953
function controller (mapStateToProps, { enhance } = {}) {
  return Comp => {
    let modelFields = Comp.elements.filter(el => el.descriptor.get && el.descriptor.get.__ModelType)

    Comp.finisher = function (_constructor) {

      class ControllerWrapper extends _constructor {
        static contextTypes = {
          tempo: PropTypes.object,
          ..._constructor.contextTypes
        }

        constructor (...args) {
          super(...args)
          let context = args[1]
          const { tempo } = context

          if (typeof window === 'undefined' && this.componentPrepare) {
            // on server
            const { _componentHasPrepared } = this.props
            if (!_componentHasPrepared) {
              tempo.prepareManager.prepareComponent(this)
            }
          } else {
            // on browser, call componentPrepare on componentDidMount event. why?
            // 1. hmr will recreate the component, constructor will call many times.
            // 2. up loading speed
          }
        }

        componentDidMount () {
          if(super.componentDidMount){
            super.componentDidMount()
          }
          if (typeof window !== 'undefined' && this.componentPrepare) {
            const { _componentHasPrepared } = this.props
            const { tempo } = this.context
            if (!_componentHasPrepared) {
              tempo.prepareManager.prepareComponent(this)
            }
          }
        }

        // 服务端渲染时，不可调用setState方法，设置不会生效，会导致服务端和浏览器上渲染的结果不一致
        setState (...args) {
          if (typeof window === 'undefined' && process.env.NODE_ENV !== 'production') {
            let displayName = _constructor.displayName || _constructor.name || 'Component'
            throw new Error(`Controller(${displayName}): can't call setState during componentPrepare, this will not work on ssr`)
          }
          super.setState(...args)
        }
      }

      // default enhancer
      let enhancers = []
      enhancers.push(connect(mapStateToProps, dispatch => ({ dispatch })))
      // custom enhancers
      if (enhance && typeof enhance === 'function') {
        enhancers = enhance(enhancers) || enhancers
      }

      let EnhancedComp = ControllerWrapper

      if (enhancers && enhancers.length > 0) {
        let hasConnectHOC = false
        enhancers.forEach((enhancer) => {
          EnhancedComp = enhancer(EnhancedComp)
          if ((typeof EnhancedComp === 'undefined') || EnhancedComp === null || !EnhancedComp.prototype.isReactComponent) {
            throw 'the enhance must return a React.Component or React.PureComponent'
          }
          if (EnhancedComp.displayName && /Connect\(/.test(EnhancedComp.displayName)) {
            hasConnectHOC = true
          }
        })
        // check
        if (process.env.NODE_ENV === 'development') {
          if (!hasConnectHOC && console.warn) {
            console.warn(`controller(${getCompDisplayName(_constructor) || ''}) redux connect hoc has been removed,`)
          }
        }
      } else {
        if (process.env.NODE_ENV === 'development' && console.warn) {
          console.warn(`controller(${getCompDisplayName(_constructor) || ''}) enhancers is empty, you should not remove all enhancers`)
        }
      }

      return injectModelsToProps(EnhancedComp, modelFields)
    }
  }
}