Closed liaowang11 closed 5 years ago
According to When do I use :require vs :import?.
:require goog.history.EventType and accessing the enum like EventType/NAVIGATE is not right.
:require
goog.history.EventType
EventType/NAVIGATE
Should indeed do a :import goog.history.EventType then access the enum like EventType.NAVIGATE.
:import goog.history.EventType
EventType.NAVIGATE
@liaowang11 PR welcome
According to When do I use :require vs :import?.
:require
goog.history.EventType
and accessing the enum likeEventType/NAVIGATE
is not right.Should indeed do a
:import goog.history.EventType
then access the enum likeEventType.NAVIGATE
.