Skip to content

Commit

Permalink
Fix many closure compiler warnings. (#3156)
Browse files Browse the repository at this point in the history
  • Loading branch information
cramforce committed May 9, 2016
1 parent 7c65108 commit f2acf80
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 48 deletions.
2 changes: 1 addition & 1 deletion extensions/amp-analytics/0.1/instrumentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class InstrumentationService {
}
}

/** @private{function()} function to run or schedule. */
/** @private {function()} fn function to run or schedule. */
runOrSchedule_(fn) {
if (this.viewer_.isVisible()) {
fn();
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-image-lightbox/0.1/amp-image-lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ class AmpImageLightbox extends AMP.BaseElement {
});
}

/** @private {!History} */
/** @private @return {!History} */
getHistory_() {
return historyFor(this.element.ownerDocument.defaultView);
}
Expand Down
1 change: 1 addition & 0 deletions src/3p-frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export function getIframe(parentWindow, element, opt_type) {
iframe.height = attributes.height;
iframe.style.border = 'none';
iframe.setAttribute('scrolling', 'no');
/** @this {!Element} */
iframe.onload = function() {
// Chrome does not reflect the iframe readystate.
this.readyState = 'complete';
Expand Down
Loading

0 comments on commit f2acf80

Please sign in to comment.