| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 15 | 2 | 1 | 0.961 | SourceElements[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 15 | 118 | Closure/closure/goog/editor/plugins/basictextformatter.js |
| 2 | 13 | 105 | Closure/closure/goog/editor/plugins/tableeditor.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_;
} ;
|
| ||||
/**
* 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_;
} ;
|
| |||
/**
* 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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#467e04a0]] | BasicTextFormatter |
| 1 | 2 | [[#467e04a0]] | TableEditor |