CloneSet 320

CloneSet320


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22230.961SourceElements[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
122148
Closure/closure/goog/events/eventtarget.js
225149
Closure/closure/goog/graphics/element.js
Clone Instance
1
Line Count
22
Source Line
148
Source File
Closure/closure/goog/events/eventtarget.js

/**
 * Adds an event listener to the event target. The same handler can only be
 * added once per the type. Even if you add the same handler multiple times
 * using the same type then it will only be called once when the event is
 * dispatched.
 *
 * Supported for legacy but use goog.events.listen(src, type, handler) instead.
 *
 * @param {string} type The type of the event to listen for.
 * @param {Function|Object} handler The function to handle the event. The
 *     handler can also be an object that implements the handleEvent method
 *     which takes the event object as argument.
 * @param {boolean=} opt_capture In DOM-compliant browsers, this determines
 *     whether the listener is fired during the capture or bubble phase
 *     of the event.
 * @param {Object=} opt_handlerScope Object in whose scope to call the listener.
 */
goog.events.EventTarget.prototype.addEventListener=  function (
    type, handler, opt_capture, opt_handlerScope) {
  goog.events.listen(this, type, handler, opt_capture, opt_handlerScope);
                                                  } ;


/**
 * Removes an event listener from the event target. The handler must be the
 * same object as the one added. If the handler has not been added then
 * nothing is done.
 * @param {string} type The type of the event to listen for.
 * @param {Function|Object} handler The function to handle the event. The
 *     handler can also be an object that implements the handleEvent method
 *     which takes the event object as argument.
 * @param {boolean=} opt_capture In DOM-compliant browsers, this determines
 *     whether the listener is fired during the capture or bubble phase
 *     of the event.
 * @param {Object=} opt_handlerScope Object in whose scope to call the listener.
 */
goog.events.EventTarget.prototype.removeEventListener=  function (
    type, handler, opt_capture, opt_handlerScope) {
  goog.events.unlisten(this, type, handler, opt_capture, opt_handlerScope);
                                                  } ;


Clone Instance
2
Line Count
25
Source Line
149
Source File
Closure/closure/goog/graphics/element.js

/**
 * Adds an event listener to the element.
 *
 * @param {string} type The type of the event to listen for.
 * @param {Function} handler The function to handle the event. The handler can
 *     also be an object that implements the handleEvent method which takes the
 *     event object as argument.
 * @param {boolean=} opt_capture In DOM-compliant browsers, this determines
 *     whether the listener is fired during the capture or bubble phase of the
 *     event.
 * @param {Object=} opt_handlerScope Object in whose scope to call the listener.
 */
goog.graphics.Element.prototype.addEventListener=  function (
    type, handler, opt_capture, opt_handlerScope) {
  goog.events.listen(this.element_, type, handler, opt_capture,
      opt_handlerScope);
                                                  } ;


/**
 * Removes an event listener from the element. The handler must be the
 * same object as the one added. If the handler has not been added then
 * nothing is done.
 *
 * @param {string} type The type of the event to listen for.
 * @param {Function} handler The function to handle the event. The handler can
 *     can also be an object that implements thehandleEvent method which takes
 *     the event obejct as argument.
 * @param {boolean=} opt_capture In DOM-compliant browsers, this determines
 *     whether the listener is fired during the capture or bubble phase of the
 *     event.
 * @param {Object=} opt_handlerScope Object in whose scope to call the listener.
 */
goog.graphics.Element.prototype.removeEventListener=  function (
    type, handler, opt_capture, opt_handlerScope) {
  goog.events.unlisten(this.element_, type, handler, opt_capture,
      opt_handlerScope);
                                                  } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Adds an event listener to the event target. The same handler can only be
 * added once per the type. Even if you add the same handler multiple times
 * using the same type then it will only be called once when the event is
 * dispatched.
 *
 * Supported for legacy but use goog.events.listen(src, type, handler) instead.
 *
 * @param {string} type The type of the event to listen for.
 * @param {Function|Object} handler The function to handle the event. The
 *     handler can also be an object that implements the handleEvent method
 *     which takes the event object as argument.
 * @param {boolean=} opt_capture In DOM-compliant browsers, this determines
 *     whether the listener is fired during the capture or bubble phase
 *     of the event.
 * @param {Object=} opt_handlerScope Object in whose scope to call the listener.
 */
/**
 * Adds an event listener to the element.
 *
 * @param {string} type The type of the event to listen for.
 * @param {Function} handler The function to handle the event. The handler can
 *     also be an object that implements the handleEvent method which takes the
 *     event object as argument.
 * @param {boolean=} opt_capture In DOM-compliant browsers, this determines
 *     whether the listener is fired during the capture or bubble phase of the
 *     event.
 * @param {Object=} opt_handlerScope Object in whose scope to call the listener.
 */
goog. [[#variable5ec63e60]]. [[#variable5ec63d80]].prototype.addEventListener= function (type,handler,opt_capture,opt_handlerScope)
                                                                               { goog.events.listen( [[#variable5d370840]],type,handler,opt_capture,opt_handlerScope);
                                                                               } ;
/**
 * Removes an event listener from the event target. The handler must be the
 * same object as the one added. If the handler has not been added then
 * nothing is done.
 * @param {string} type The type of the event to listen for.
 * @param {Function|Object} handler The function to handle the event. The
 *     handler can also be an object that implements the handleEvent method
 *     which takes the event object as argument.
 * @param {boolean=} opt_capture In DOM-compliant browsers, this determines
 *     whether the listener is fired during the capture or bubble phase
 *     of the event.
 * @param {Object=} opt_handlerScope Object in whose scope to call the listener.
 */
/**
 * Removes an event listener from the element. The handler must be the
 * same object as the one added. If the handler has not been added then
 * nothing is done.
 *
 * @param {string} type The type of the event to listen for.
 * @param {Function} handler The function to handle the event. The handler can
 *     can also be an object that implements thehandleEvent method which takes
 *     the event obejct as argument.
 * @param {boolean=} opt_capture In DOM-compliant browsers, this determines
 *     whether the listener is fired during the capture or bubble phase of the
 *     event.
 * @param {Object=} opt_handlerScope Object in whose scope to call the listener.
 */
goog. [[#variable5ec63e60]]. [[#variable5ec63d80]].prototype.removeEventListener= function (type,handler,opt_capture,opt_handlerScope)
                                                                                  { goog.events.unlisten( [[#variable5d370840]],type,handler,opt_capture,opt_handlerScope);
                                                                                  } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5ec63e60]]
events 
12[[#5ec63e60]]
graphics 
21[[#5ec63d80]]
EventTarget 
22[[#5ec63d80]]
Element 
31[[#5d370840]]
this 
32[[#5d370840]]
this.element_