Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit 2cb0e52

Browse files
Closure Teamshicks
authored andcommitted
Remove WebChannel's dependency on native EventTartget and its implementation of addEventListener and removeEventListener
RELNOTES: N/A PiperOrigin-RevId: 329742032
1 parent 25db34e commit 2cb0e52

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

closure/goog/labs/net/webchannel.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ goog.require('goog.net.XmlHttpFactory');
4747
* to be enabled.
4848
*
4949
* @interface
50-
* @extends {EventTarget}
5150
* @extends {goog.events.Listenable}
5251
*/
5352
goog.net.WebChannel = function() {};

closure/goog/labs/net/webchannel/webchannelbasetransport.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -192,31 +192,6 @@ WebChannelBaseTransport.Channel = function(url, opt_options) {
192192
goog.inherits(WebChannelBaseTransport.Channel, goog.events.EventTarget);
193193

194194

195-
/**
196-
* @override
197-
* @suppress {checkTypes}
198-
*/
199-
WebChannelBaseTransport.Channel.prototype.addEventListener = function(
200-
type, handler, /** boolean= */ opt_capture, opt_handlerScope) {
201-
'use strict';
202-
WebChannelBaseTransport.Channel.base(
203-
this, 'addEventListener', type, handler, opt_capture, opt_handlerScope);
204-
};
205-
206-
207-
/**
208-
* @override
209-
* @suppress {checkTypes}
210-
*/
211-
WebChannelBaseTransport.Channel.prototype.removeEventListener = function(
212-
type, handler, /** boolean= */ opt_capture, opt_handlerScope) {
213-
'use strict';
214-
WebChannelBaseTransport.Channel.base(
215-
this, 'removeEventListener', type, handler, opt_capture,
216-
opt_handlerScope);
217-
};
218-
219-
220195
/**
221196
* @override
222197
*/

0 commit comments

Comments
 (0)