Skip to content

Commit

Permalink
Remove all externs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasgarnier committed Sep 4, 2019
1 parent 2b406ba commit c3fda35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 51 deletions.
12 changes: 0 additions & 12 deletions codelab-elements/google-codelab/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,6 @@ closure_js_library(
deps = [
"@io_bazel_rules_closure//closure/library",
":google_codelab_soy",
":externs",
]
)

# Externs.
closure_js_library(
name = "externs",
srcs = [
"externs.js",
],
suppress = [
"JSC_STRICT_INEXISTENT_PROPERTY",
]
)

Expand Down
37 changes: 0 additions & 37 deletions codelab-elements/google-codelab/externs.js

This file was deleted.

6 changes: 4 additions & 2 deletions codelab-elements/google-codelab/google_codelab.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ class Codelab extends HTMLElement {
return;
}


let time = 0;
for (let i = this.currentSelectedStep_; i < this.steps_.length; i++) {
const step = /** @type {!Element} */ (this.steps_[i]);
Expand Down Expand Up @@ -752,8 +753,9 @@ class Codelab extends HTMLElement {
if (feedbackLink) {
this.eventHandler_.listen(feedbackLink, events.EventType.CLICK,
(e) => {
if ('userfeedback' in window && userfeedback.api) {
userfeedback.api.startFeedback({productId: '5143948'});
if ('userfeedback' in window) {
window['userfeedback']['api']['startFeedback']
({productId: '5143948'});
}
});
}
Expand Down

0 comments on commit c3fda35

Please sign in to comment.