CloneSet411


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15230.966SourceElements[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1151029
Closure/closure/goog/ui/control.js
2191054
Closure/closure/goog/ui/control.js
Clone Instance
1
Line Count
15
Source Line
1029
Source File
Closure/closure/goog/ui/control.js

/**
 * Returns true if the component provides default event handling for the state,
 * false otherwise.
 * @param {goog.ui.Component.State} state State to check.
 * @return {boolean} Whether the component provides default event handling for
 *     the state.
 */
goog.ui.Control.prototype.isAutoState=  function (state){
  return !!(this.autoStates_&  state)
         &&                              this.isSupportedState(state);
                                                        } ;

/**
 * Enables or disables automatic event handling for the given state(s).
 * @param {number} states Bit mask of {@link goog.ui.Component.State}s for which
 *     default event handling is to be enabled or disabled.
 * @param {boolean} enable Whether the component should provide default event
 *     handling for the state(s).
 */
goog.ui.Control.prototype.setAutoStates=  function (states, enable){
  this.autoStates_=  enable
                     ?this.autoStates_|  states
                     :            this.autoStates_&  ~states;
                                                                   } ;


Clone Instance
2
Line Count
19
Source Line
1054
Source File
Closure/closure/goog/ui/control.js

/**
 * Returns true if the component is set to dispatch transition events for the
 * given state, false otherwise.
 * @param {goog.ui.Component.State} state State to check.
 * @return {boolean} Whether the component dispatches transition events for
 *     the state.
 */
goog.ui.Control.prototype.isDispatchTransitionEvents=  function (state){
  return !!(this.statesWithTransitionEvents_&  state)
         &&this.isSupportedState(state);
                                                                       } ;


/**
 * Enables or disables transition events for the given state(s).  Controls
 * handle state transitions internally by default, and only dispatch state
 * transition events if explicitly requested to do so by calling this mentod.
 * @param {number} states Bit mask of {@link goog.ui.Component.State}s for
 *     which transition events should be enabled or disabled.
 * @param {boolean} enable Whether transition events should be enabled.
 */
goog.ui.Control.prototype.setDispatchTransitionEvents=  function (states,
     enable){
  this.statesWithTransitionEvents_=  enable
                                     ?this.statesWithTransitionEvents_|  states
                                     : this.statesWithTransitionEvents_&  ~states;
            } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Returns true if the component provides default event handling for the state,
 * false otherwise.
 * @param {goog.ui.Component.State} state State to check.
 * @return {boolean} Whether the component provides default event handling for
 *     the state.
 */
/**
 * Returns true if the component is set to dispatch transition events for the
 * given state, false otherwise.
 * @param {goog.ui.Component.State} state State to check.
 * @return {boolean} Whether the component dispatches transition events for
 *     the state.
 */
goog.ui.Control.prototype. [[#variable571e9be0]]= function (state)
                                                  { return !!(this. [[#variable3a4e6d00]]&state)
                                                           && this.isSupportedState(state);
                                                  } ;
/**
 * Enables or disables automatic event handling for the given state(s).
 * @param {number} states Bit mask of {@link goog.ui.Component.State}s for which
 *     default event handling is to be enabled or disabled.
 * @param {boolean} enable Whether the component should provide default event
 *     handling for the state(s).
 */
/**
 * Enables or disables transition events for the given state(s).  Controls
 * handle state transitions internally by default, and only dispatch state
 * transition events if explicitly requested to do so by calling this mentod.
 * @param {number} states Bit mask of {@link goog.ui.Component.State}s for
 *     which transition events should be enabled or disabled.
 * @param {boolean} enable Whether transition events should be enabled.
 */
goog.ui.Control.prototype. [[#variable3a4e6cc0]]= function (states,enable)
                                                  { this. [[#variable3a4e6d00]]=enable
                                                                                ?this. [[#variable3a4e6d00]]|states
                                                                                : this. [[#variable3a4e6d00]]& ~states;
                                                  } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#571e9be0]]
isAutoState 
12[[#571e9be0]]
isDispatchTransitionEvents 
21[[#3a4e6d00]]
autoStates_ 
22[[#3a4e6d00]]
statesWithTransitionEvents_ 
31[[#3a4e6cc0]]
setAutoStates 
32[[#3a4e6cc0]]
setDispatchTransitionEvents