Skip to content

Commit

Permalink
Fix GestureEventListeners generated externs name.
Browse files Browse the repository at this point in the history
Due to some compiler weirdness, we recently added some hacky indirection
around GestureEventListeners, however this changed the name of that
mixin from Analyzer's perspective by adding a leading underscore. This
fixes that.
  • Loading branch information
aomarks committed May 30, 2019
1 parent 05231a0 commit cdd4e20
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/mixins/gesture-event-listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { addListener, removeListener } from '../utils/gestures.js';
* cross-platform
* gesture events to nodes
*/
const _GestureEventListeners = dedupingMixin(
const GestureEventListeners = dedupingMixin(
/**
* @template T
* @param {function(new:T)} superClass Class to apply mixin to.
Expand Down Expand Up @@ -74,13 +74,15 @@ const _GestureEventListeners = dedupingMixin(
return GestureEventListeners;
});

// Somehow _GestureEventListeners is incorrectly typed as *. For now add this
// Somehow GestureEventListeners is incorrectly typed as *. For now add this
// cast.
/**
* @template T
* @param {function(new:T)} superClass Class to apply mixin to.
* @return {function(new:T)} superClass with mixin applied.
*/
export const GestureEventListeners = function(superClass) {
return _GestureEventListeners(superClass);
const _GestureEventListeners = function(superClass) {
return GestureEventListeners(superClass);
};

export {_GestureEventListeners as GestureEventListeners};

0 comments on commit cdd4e20

Please sign in to comment.