CloneSet1195


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15210.961SourceElements[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115118
Closure/closure/goog/editor/plugins/basictextformatter.js
213105
Closure/closure/goog/editor/plugins/tableeditor.js
Clone Instance
1
Line Count
15
Source Line
118
Source File
Closure/closure/goog/editor/plugins/basictextformatter.js

/**
 * Inverse map of execCommand strings to
 * {@link goog.editor.plugins.BasicTextFormatter.COMMAND} constants. Used to
 * determine whether a string corresponds to a command this plugin
 * handles in O(1) time.
 * @type {Object}
 * @private
 */
goog.editor.plugins.BasicTextFormatter.SUPPORTED_COMMANDS_=
    goog.object.transpose(goog.editor.plugins.BasicTextFormatter.COMMAND);


/**
 * Whether the string corresponds to a command this plugin handles.
 * @param {string} command Command string to check.
 * @return {boolean} Whether the string corresponds to a command
 *     this plugin handles.
 */
goog.editor.plugins.BasicTextFormatter.prototype.isSupportedCommand=  function (
    command) {
  // TODO: restore this to simple check once table editing
  // is moved out into its own plugin
  return command in goog.editor.plugins.BasicTextFormatter.SUPPORTED_COMMANDS_;
             } ;


Clone Instance
2
Line Count
13
Source Line
105
Source File
Closure/closure/goog/editor/plugins/tableeditor.js

/**
 * Inverse map of execCommand strings to
 * {@link goog.editor.plugins.TableEditor.COMMAND} constants. Used to
 * determine whether a string corresponds to a command this plugin handles
 * in O(1) time.
 * @type {Object}
 * @private
 */
goog.editor.plugins.TableEditor.SUPPORTED_COMMANDS_=
    goog.object.transpose(goog.editor.plugins.TableEditor.COMMAND);


/**
 * Whether the string corresponds to a command this plugin handles.
 * @param {string} command Command string to check.
 * @return {boolean} Whether the string corresponds to a command
 *     this plugin handles.
 */
goog.editor.plugins.TableEditor.prototype.isSupportedCommand=
    function (command){
  return command in goog.editor.plugins.TableEditor.SUPPORTED_COMMANDS_;
                      } ;


Clone AbstractionParameter Count: 1Parameter Bindings

/**
 * Inverse map of execCommand strings to
 * {@link goog.editor.plugins.BasicTextFormatter.COMMAND} constants. Used to
 * determine whether a string corresponds to a command this plugin
 * handles in O(1) time.
 * @type {Object}
 * @private
 */
/**
 * Inverse map of execCommand strings to
 * {@link goog.editor.plugins.TableEditor.COMMAND} constants. Used to
 * determine whether a string corresponds to a command this plugin handles
 * in O(1) time.
 * @type {Object}
 * @private
 */
goog.editor.plugins. [[#variable467e04a0]].SUPPORTED_COMMANDS_=goog.object.transpose(goog.editor.plugins. [[#variable467e04a0]].COMMAND);
/**
 * Whether the string corresponds to a command this plugin handles.
 * @param {string} command Command string to check.
 * @return {boolean} Whether the string corresponds to a command
 *     this plugin handles.
 */
goog.editor.plugins. [[#variable467e04a0]].prototype.isSupportedCommand= function (command)
                                                                         {
                                                                           // TODO: restore this to simple check once table editing
                                                                           // is moved out into its own plugin
                                                                           return command in goog.editor.plugins. [[#variable467e04a0]].SUPPORTED_COMMANDS_;
                                                                         } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#467e04a0]]
BasicTextFormatter 
12[[#467e04a0]]
TableEditor