coreRuntime/src/sc/bind/SelectorBinding.java
private boolean validateBinding(Object obj, int validateTo) {
      if (direction.doForward() && !valid && activated) {
         Object bindingParent = boundValues[0];
         Object lastParent = obj;
         boolean changed = false;
         for (int i = 0; i < validateTo; i++) {
            Object newValue = bindingParent == null || bindingParent == UNSET_VALUE_SENTINEL ? UNSET_VALUE_SENTINEL : PBindUtil.getPropertyValue(lastParent, boundProps[i], false, false);

            if (!DynUtil.equalObjects(newValue, boundValues[i])) {
               updateBoundValue(i, newValue);
               changed = true;
            }
            lastParent = bindingParent;
            bindingParent = boundValues[i];
         }
         if (validateTo == boundProps.length)
            valid = true;
         return changed;
      }
      return false;
   }
/** Used after reactivating... because we do not accurately track change events when deactivated we need to just do a re-validate.  It is also a nice operation to have for lazier evaluation schemes down the road. */
Used after reactivating... because we do not accurately track change events when deactivated we need to just do a re-validate.  It is also a nice operation to have for lazier evaluation schemes down the road.
Used after reactivating ... because we do not accurately track change events when deactivated we need to just do a re - validate . It is also a nice operation to have for lazier evaluation schemes down the road .
private boolean validateBinding(Object obj, int validateTo) {
      if (direction.doForward() && !valid && activated) {
         Object bindingParent = boundValues[0];
         Object lastParent = obj;
         boolean changed = false;
         for (int i = 0; i < validateTo; i++) {
            Object newValue = bindingParent == null || bindingParent == UNSET_VALUE_SENTINEL ? UNSET_VALUE_SENTINEL : PBindUtil.getPropertyValue(lastParent, boundProps[i], false, false);
            if (!DynUtil.equalObjects(newValue, boundValues[i])) {
               updateBoundValue(i, newValue);
               changed = true;
            }
            lastParent = bindingParent;
            bindingParent = boundValues[i];
         }
         if (validateTo == boundProps.length)
            valid = true;
         return changed;
      }
      return false;
   }
private boolean validateBinding ( Object obj , int validateTo ) { if ( direction . doForward ( ) && ! valid && activated ) { Object bindingParent = boundValues [ 0 ] ; Object lastParent = obj ; boolean changed = false ; for ( int i = 0 ; i < validateTo ; i ++ ) { Object newValue = bindingParent == null || bindingParent == UNSET_VALUE_SENTINEL ? UNSET_VALUE_SENTINEL : PBindUtil . getPropertyValue ( lastParent , boundProps [ i ] , false , false ) ; if ( ! DynUtil . equalObjects ( newValue , boundValues [ i ] ) ) { updateBoundValue ( i , newValue ) ; changed = true ; } lastParent = bindingParent ; bindingParent = boundValues [ i ] ; } if ( validateTo == boundProps . length ) valid = true ; return changed ; } return false ; }
Used after reactivating... because we do not accurately track change events when deactivated we need to just do a re-validate.
Used after reactivating ... because we do not accurately track change events when deactivated we need to just do a re - validate .