coreRuntime/src/sc/bind/Bind.java
private static DestinationListener bindToList(List<DestinationListener> bindings, DestinationListener binding, Object dstObj) {
      int sz = bindings.size();
      int i;

      DestinationListener replacedBinding = null;

      // Only bindings with := cause the automatic overriding. =: bindings must be removed explicitly using the api
      if (binding.direction.doForward()) {
         for (i = 0; i < sz; i++) {
            DestinationListener oldBinding = bindings.get(i);
            if (PBindUtil.equalProps(oldBinding.dstProp, binding.dstProp) && oldBinding.direction.doForward()) {
               replacedBinding = oldBinding;
               oldBinding.removeListener();
               bindings.set(i, binding);
               break;
            }
         }
         if (i == sz)
            bindings.add(binding);
      }
      else
         bindings.add(binding);
      return replacedBinding;
   }
/**
    * This implements overriding of bindings.  When you add a binding for a specific property, it removes
    * any binding already defined for that property. 
    */
This implements overriding of bindings.  When you add a binding for a specific property, it removes
any binding already defined for that property.
This implements overriding of bindings . When you add a binding for a specific property it removes any binding already defined for that property .
private static DestinationListener bindToList(List<DestinationListener> bindings, DestinationListener binding, Object dstObj) {
      int sz = bindings.size();
      int i;
      DestinationListener replacedBinding = null;
      if (binding.direction.doForward()) {
         for (i = 0; i < sz; i++) {
            DestinationListener oldBinding = bindings.get(i);
            if (PBindUtil.equalProps(oldBinding.dstProp, binding.dstProp) && oldBinding.direction.doForward()) {
               replacedBinding = oldBinding;
               oldBinding.removeListener();
               bindings.set(i, binding);
               break;
            }
         }
         if (i == sz)
            bindings.add(binding);
      }
      else
         bindings.add(binding);
      return replacedBinding;
   }
private static DestinationListener bindToList ( List < DestinationListener > bindings , DestinationListener binding , Object dstObj ) { int sz = bindings . size ( ) ; int i ; DestinationListener replacedBinding = null ; if ( binding . direction . doForward ( ) ) { for ( i = 0 ; i < sz ; i ++ ) { DestinationListener oldBinding = bindings . get ( i ) ; if ( PBindUtil . equalProps ( oldBinding . dstProp , binding . dstProp ) && oldBinding . direction . doForward ( ) ) { replacedBinding = oldBinding ; oldBinding . removeListener ( ) ; bindings . set ( i , binding ) ; break ; } } if ( i == sz ) bindings . add ( binding ) ; } else bindings . add ( binding ) ; return replacedBinding ; }
This implements overriding of bindings.
This implements overriding of bindings .
// Only bindings with := cause the automatic overriding. =: bindings must be removed explicitly using the api