I47a487e3 added the definition of the Gerrit global to help enable
Closure compilation. However, the object created by
`let Gerrit = window.Gerrit || {}` was never reassigned to
window.Gerrit, leading to window.Gerrit being initialized to a different
empty object when the first behavior was loaded.
A gr-endpoint-decorator element is included in gr-app.html. For that
specific endpoint, the Gerrit object referenced in
gr-endpoint-decorator.js was not the window.Gerrit object that contained
the properly initialized endpoints.
With this change, the object reference is reassigned window.Gerrit in
every root view touched by the aforementioned change.
Change-Id: I0d571918043311ac07a966d0faf126d355b55a5b
8 lines
259 B
HTML
8 lines
259 B
HTML
<script>
|
|
// Needed for JSCompiler to understand it's global.
|
|
// eslint-disable-next-line no-unused-vars, prefer-const
|
|
let Gerrit = window.Gerrit || {};
|
|
window.Gerrit = Gerrit;
|
|
</script>
|
|
<link rel="import" href="../elements/diff/gr-diff/gr-diff.html">
|