Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
22 | 2 | 3 | 0.961 | SourceElements[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 22 | 148 | Closure/closure/goog/events/eventtarget.js |
2 | 25 | 149 | Closure/closure/goog/graphics/element.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); } ; |
| ||||
/** * 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); } ; |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5ec63e60]] | events |
1 | 2 | [[#5ec63e60]] | graphics |
2 | 1 | [[#5ec63d80]] | EventTarget |
2 | 2 | [[#5ec63d80]] | Element |
3 | 1 | [[#5d370840]] | this |
3 | 2 | [[#5d370840]] | this.element_ |