Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 3 | 0.966 | SourceElements[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 1029 | Closure/closure/goog/ui/control.js |
2 | 19 | 1054 | 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; } ; |
| ||||
/** * 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; } ; |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#571e9be0]] | isAutoState |
1 | 2 | [[#571e9be0]] | isDispatchTransitionEvents |
2 | 1 | [[#3a4e6d00]] | autoStates_ |
2 | 2 | [[#3a4e6d00]] | statesWithTransitionEvents_ |
3 | 1 | [[#3a4e6cc0]] | setAutoStates |
3 | 2 | [[#3a4e6cc0]] | setDispatchTransitionEvents |