Skip to content

Commit

Permalink
Remove more intermediary state changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferbaxter committed May 19, 2021
1 parent d8f19fe commit d8fd326
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions extensions/amp-image-viewer/0.1/amp-image-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {bezierCurve} from '../../../src/core/data-structures/curve';
import {boundValue, distance, magnitude} from '../../../src/utils/math';
import {closestAncestorElementBySelector, elementByTag} from '../../../src/dom';
import {continueMotion} from '../../../src/motion';
import {createCustomEvent, loadPromise} from '../../../src/event-helper';
import {createCustomEvent} from '../../../src/event-helper';
import {dev, userAssert} from '../../../src/log';
import {
expandLayoutRect,
Expand Down Expand Up @@ -154,7 +154,6 @@ export class AmpImageViewer extends AMP.BaseElement {

/** @override */
layoutCallback() {
debugger;
if (this.loadPromise_) {
return this.loadPromise_;
}
Expand Down
1 change: 0 additions & 1 deletion src/service/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,6 @@ export class Resource {
return;
}
if (this.abortController_) {
console.log('calling abort', this.state_, this);
this.abortController_.abort();
this.abortController_ = null;
}
Expand Down

0 comments on commit d8fd326

Please sign in to comment.