CloneSet1425


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6240.956ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16126
Closure/closure/goog/editor/plugin.js
26140
Closure/closure/goog/editor/plugin.js
Clone Instance
1
Line Count
6
Source Line
126
Source File
Closure/closure/goog/editor/plugin.js

/**
 * Enables this plugin for the specified, registered field object. A field
 * object should only be enabled when it is loaded.
 * @param {goog.editor.Field} fieldObject The field object.
 */
goog.editor.Plugin.prototype.enable=  function (fieldObject){
  if (this.fieldObject==  fieldObject) {
    this.enabled_=  true;
                                       }
  else   {
    this.logger.severe('Trying to enable an unregistered field with '+
        'this plugin.');
         }
                                                            } ;


Clone Instance
2
Line Count
6
Source Line
140
Source File
Closure/closure/goog/editor/plugin.js

/**
 * Disables this plugin for the specified, registered field object.
 * @param {goog.editor.Field} fieldObject The field object.
 */
goog.editor.Plugin.prototype.disable=  function (fieldObject){
  if (this.fieldObject==  fieldObject) {
    this.enabled_=  false;
                                       }
  else   {
    this.logger.severe('Trying to disable an unregistered field '+
        'with this plugin.');
         }
                                                             } ;


Clone AbstractionParameter Count: 4Parameter Bindings

/**
 * Disables this plugin for the specified, registered field object.
 * @param {goog.editor.Field} fieldObject The field object.
 */
/**
 * Enables this plugin for the specified, registered field object. A field
 * object should only be enabled when it is loaded.
 * @param {goog.editor.Field} fieldObject The field object.
 */
goog.editor.Plugin.prototype. [[#variable1efe7e20]]= function (fieldObject)
                                                     { if (this.fieldObject==fieldObject)
                                                         { this.enabled_= [[#variable1efe7da0]];
                                                         }
                                                       else
                                                         { this.logger.severe( [[#variable1efe7d40]]+ [[#variable1efe7c80]]);
                                                         }
                                                     } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1efe7e20]]
disable 
12[[#1efe7e20]]
enable 
21[[#1efe7da0]]
false 
22[[#1efe7da0]]
true 
31[[#1efe7d40]]
'Trying to disable an unregistered field ' 
32[[#1efe7d40]]
'Trying to enable an unregistered field with ' 
41[[#1efe7c80]]
'with this plugin.' 
42[[#1efe7c80]]
'this plugin.'