Skip to content

Commit

Permalink
Remove WebChannel's dependency on native EventTartget and its impleme…
Browse files Browse the repository at this point in the history
…ntation of addEventListener and removeEventListener

RELNOTES: N/A

PiperOrigin-RevId: 329742032
  • Loading branch information
Closure Team authored and shicks committed Sep 3, 2020
1 parent 25db34e commit 2cb0e52
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
1 change: 0 additions & 1 deletion closure/goog/labs/net/webchannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ goog.require('goog.net.XmlHttpFactory');
* to be enabled.
*
* @interface
* @extends {EventTarget}
* @extends {goog.events.Listenable}
*/
goog.net.WebChannel = function() {};
Expand Down
25 changes: 0 additions & 25 deletions closure/goog/labs/net/webchannel/webchannelbasetransport.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,31 +192,6 @@ WebChannelBaseTransport.Channel = function(url, opt_options) {
goog.inherits(WebChannelBaseTransport.Channel, goog.events.EventTarget);


/**
* @override
* @suppress {checkTypes}
*/
WebChannelBaseTransport.Channel.prototype.addEventListener = function(
type, handler, /** boolean= */ opt_capture, opt_handlerScope) {
'use strict';
WebChannelBaseTransport.Channel.base(
this, 'addEventListener', type, handler, opt_capture, opt_handlerScope);
};


/**
* @override
* @suppress {checkTypes}
*/
WebChannelBaseTransport.Channel.prototype.removeEventListener = function(
type, handler, /** boolean= */ opt_capture, opt_handlerScope) {
'use strict';
WebChannelBaseTransport.Channel.base(
this, 'removeEventListener', type, handler, opt_capture,
opt_handlerScope);
};


/**
* @override
*/
Expand Down

0 comments on commit 2cb0e52

Please sign in to comment.